laurent.bihanic at atosorigin.com
Wed Aug 13 05:28:12 PDT 2003
salil khanwalkar wrote:
> When parsing this file JDOM returns errors as i have turned on the check
> for validations and well formedness of the documents.
> SAXBuilder builder = new SAXBuilder(true);
> SAXBuilder builder = new SAXBuilder();--when is use this no errors will
> occur and i am able to parse the file properly.
> Why does this happen or is there anything wrong with my xml file?
XML parsers always check for well-formedness. When requesting validation you
have to provide a way for the parser to validate, i.e. a DTD or a schema. As
you don't, the parser complains.
So, there's nothing wrong with your XML file !
More information about the jdom-interest