• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DTD Conventions

 
Buck Turgidson
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got my SCJP last year. Now I am slooowwwly getting through the JSP material for SCWCD.
I am wondering if someone can point me to a resource for decoding some DTD conventions. Is there a doc that explains the doc? What's #PCDATA versus EMPTY?
For instance, the following is greek to me:
<!ELEMENT display-name (#PCDATA)>
versus
<!ELEMENT distributable EMPTY>
 
Hema Menon
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess the forum to post this question would be XML forum. Anyway,
#PCDATA indicates that the content of the element is of type parsed character data, simply put, character data that does not contain any markups. When the element is defined as EMPTY it does not have any content. For eg. <email></email> or <email \> would be an empty element and
<name>Menon Hema</name> would be an example of an element defined as of content PCDATA.
Later,
Hema
 
sridhar satuloori
Ranch Hand
Posts: 144
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It was given in XML specifications.. follow this link http://www.w3.org/TR/REC-xml[/url]
Sridhar
 
Tim Duncan
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's also a pretty good introduction to XML here:
http://www.xml.com/pub/a/98/10/guide0.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic