wood burning stoves
The moose likes Product and Other Certifications and the fly likes DTD Validity Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "DTD Validity" Watch "DTD Validity" New topic

DTD Validity

Nitin Gogia

Joined: Jan 17, 2003
Posts: 22
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)*>
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 ?
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
There should be a 'SPACE' between 'this' and (#PCDATA) which is lacking in option d. hence it is not a valid option
I agree. Here's the link: http://aspose.com/file-tools
subject: DTD Validity
jQuery in Action, 3rd edition