[jdom-interest] SAXBUILDER

Alex Rosen arosen at novell.com
Tue Aug 19 06:56:19 PDT 2003


If you want to validate your document, it has to have a DOCTYPE
statement that points to the DTD. It sounds like it's not finding the
DTD.

Alex 

>>> salil khanwalkar <k_salil at yahoo.com> 8/17/2003 11:53:52 PM >>>
Hi Nancy,
I know i am posting the same problem again but i need to know whats 
wrong with my xml
Actually my xml does have root element. i did not show it, my mistake.
This is how it looks- 
<dataSet>
 <user username="k_salil" password="xxxxxx" />
 <user username="user123" password="xxxxxx1" />
 <user username="1234" password="xxxxxx12" />
 <user username="user12345" password="xxxxxx123" />
 <user username="user123456" password="xxxxxx1234" />
</dataSet>
 
The dtd is --
<!ELEMENT user EMPTY>
  <!ATTLIST user
    password CDATA #IMPLIED
    username CDATA #IMPLIED
  >
  <!ELEMENT dataSet (user)*>
 
This is the error i get after turning on the validations of
saxbuilder().
Error on line 2 of document http://localhost/webpub/dataset.xml:
Document is invalid: no grammar found.



---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software



More information about the jdom-interest mailing list