[jdom-interest] Possible parsing problem

philip.nelson at omniresources.com philip.nelson at omniresources.com
Wed Apr 25 10:48:11 PDT 2001

Not quite.  A DTD can contain other things other than notations.  Entities
in particular are important whether or not you validate.

-----Original Message-----
From: Malcolm Robbins [mailto:mrobbins at paradise.net.nz]
Sent: Wednesday, April 25, 2001 4:19 AM
To: jdom-interest at jdom.org
Subject: [jdom-interest] Possible parsing problem

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

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

More information about the jdom-interest mailing list