This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes parsing error with XML DTD, help! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "parsing error with XML DTD, help!" Watch "parsing error with XML DTD, help!" New topic
Author

parsing error with XML DTD, help!

Brynn Kishbaugh
Greenhorn

Joined: Feb 20, 2006
Posts: 2
hey all i was working on a DTD for an assignment and i have it down to one error it is a basic parsing error but im really unsure how to fix it.

according to the validator im using, this is the error it is giving me
error (300): general failure parsing XML document: (EOF)

heres my code, if anyone can help me figure out what i can do to change it and get rid of the error i would greatly appreciate it.

<?xml version="1.0" standalone="yes"?>
<!DOCTYPE accounts[
<!ELEMENT client (name,address+,phone+,email*,accountTotal?)>
<!ELEMENT address (#PCDATA)>
<!ELEMENT phone (#PCDATA)>
<!ELEMENT email (#PCDATA)>
<!ELEMENT accountTotal (#PCDATA)>
<!ELEMENT name (first,last)>
<!ELEMENT first (#PCDATA)>
<!ELEMENT last (#PCDATA)>
]>


thanks so much!!!


Penn State University<br />Info Sciences and Technology<br />Class of 2008<br />Select * from users where clue > 0;<br />(0) Rows Returned ((oh no!!))
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: parsing error with XML DTD, help!