Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Declaration problem with dtd?

Status
Not open for further replies.

MarkShark

Programmer
Aug 22, 2001
36
US
I get this error in my java servlet error doc when running scripts. My dtd declares "content", but I keep getting this error. I encluded the declaration in my dtd that lists "content" What could be causing this error?

ERROR:

2001-09-07 02:27:55 - path="" :Error: Element type "content" must be declared.: Error on line 5 of document

XML:
<?xml version='1.0' encoding=&quot;UTF-8&quot;?>
<!DOCTYPE course SYSTEM &quot;../DTD/sco_csf(5).dtd&quot; >

<course>
<content>


dtd:
<?xml version='1.0' encoding='UTF-8' ?>

<!--Generated by XML Authority-->

<!-- sco_csf(5).dtd -->
<!ELEMENT course (globalProperties? , block , objectives?)>

<!ELEMENT content (globalProperties?, block, objectives?)>



 
Shouldn't it be:
<!ELEMENT course (course)>
or
<!ELEMENT course (course+)>
?
 
Sorry I did typo:
<!ELEMENT course (content)>
or
<!ELEMENT course (content+)>
?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top