This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

parsing error with XML DTD, help!

Brynn Kishbaugh
Posts: 2
  • 0
  • 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!!!
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic