File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DTD Validity

 
Nitin Gogia
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which of the following DTD Code is valid ?
a)<!ELEMENT test (#CDATA)>
b)<!ELEMENT test (#PCDATA)>
c)<!ELEMENT test (#ANY)>
d)<!ELEMENT test (this,that)*>
<!ELEMENT this(#PCDATA)>
<!ELEMENT that(#PCDATA)>
This question is from Mock exam (DTD) by Sanjay Mishra referred in Javaranch site. The answer says b is valid but according to me it should be b,d.
Can someone please clarify whether d shud be right option or not ?
Regards
 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
Nitin
There should be a 'SPACE' between 'this' and (#PCDATA) which is lacking in option d. hence it is not a valid option
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic