But, I hasten to add, all parsers I am aware of treat it an unresolvable DTD
URI as an error if validation is enabled (while only some treat an
unresolvable external entity URI as an error).
Tim Bray, in his Annotated XML comments had this to say about URIs: "If you
do something silly like using an empty identifier, or one that doesn't work,
anyone to whom you send the document has every right to complain that it's
broken."
Makes sense. But this doesn't seem to have found its way into the spec.
Bob Foster
"blu4899" <bl*****@netscape.net> wrote in message
news:42**************************@posting.google.c om...
Hi,
The Xerces XML parser is reading external DTD references in DOCTYPEs
by default, but is not doing anything with them because validation is
turned off by default. This is documented in
http://xml.apache.org/xerces2-j/feat...d-external-dtd
This setting causes many XML instances with broken DTD references in
the DOCTYPE to fail and adds some performance overhead. Is there
anything good that comes from this default setting? Is an XML file
considered not well-formed if the external DTD reference is broken?
thanks,
blu