david Bodus

Greenhorn
+ Follow
since May 16, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by david Bodus

Hi Chandra,
I think that your DTD declaration
<!ELEMENT TOPIC (TITLE , DESCRIPTION? , (UNIT | %PERIPHERALITEM; | QUIZ)*)>
interpretes that Topic can have any number of either UNIT or PERIPHERALITEM or QUIZ under TOPIC. But they must come after TITLE and DESCRIPTION.
In other words, the following XML document is not valid..
<!DOCTYPE TOPIC [
<!ELEMENT TOPIC (UNIT | QUIZ)>
<!ELEMENT UNIT (#PCDATA)>
<!ELEMENT QUIZ (#PCDATA)>
]>
<TOPIC>
<UNIT/>
<QUIZ/>
</TOPIC>

You can either have UNIT or QUIZ but not both. This is what the declaration <!ELEMENT TOPIC (UNIT | QUIZ)> means.

I hope this helps.
-david
Hi all,
Visit www.witscale.com. Offers XML exams (40 Questions).
I hope this helps.
-Dave
Hi all,
Visit www.witscale.com for java certification exams.
It's free site, currently offers java, XML and smalltalk(?) exams.
Exam interface and questions are really good.
I hope this helps!
-Dave