Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

parsing error with XML DTD, help!  RSS feed

Brynn Kishbaugh
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)>

thanks so much!!!
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!