This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "DTD Validity" Watch "DTD Validity" New topic
Author

DTD Validity

Nitin Gogia
Greenhorn

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)*>
<!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

Joined: Nov 22, 2008
Posts: 18944
Nitin
There should be a 'SPACE' between 'this' and (#PCDATA) which is lacking in option d. hence it is not a valid option
 
Don't get me started about those stupid light bulbs.
 
subject: DTD Validity
 
Similar Threads
javaranch mock question
question on mock exam
Sample DTD Question #1
question on mock exam
DTD