[jdom-interest] Possible parsing problem

Malcolm Robbins mrobbins at paradise.net.nz
Wed Apr 25 02:19:16 PDT 2001

I've discovered some parsing behaviour that seems dubious to me.  Could someone clarify if this is correct or not?

If I have an XML text stream that is well-formed and I don't specify validation should SAXBuilder be able to build a Document in all cases?  

In particular I have the following problem: If the XML document has a DOCTYPE with an external reference in it and the DTD is not accessible the build fails!  To me this seems to be the wrong behaviour when we haven't requested validation. Shouldn't the rules be:

a)  if you specified validation then the DOCTYPE must be present and the file accessible so that validation can be completed

b) if you don't specify validation then if the DOCTYPE is present it follows the rules for formatting but accessibility of the actual DTD is not necessary? 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20010425/b40e45f1/attachment.htm

More information about the jdom-interest mailing list