You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2002/01/16 18:25:06 UTC

DO NOT REPLY [Bug 2110] - XMLEntityManager does not handle external entities well.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2110>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2110

XMLEntityManager does not handle external entities well.

neilg@ca.ibm.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From neilg@ca.ibm.com  2002-01-16 09:25 -------
Hi Petr.  I've run a test locally to try to reproduce 2); I had no success.  so 
I assume this behaviour has been corrected--could you please verify?  If not, 
seeing your document set would help.

As to 1):  Xerces is a validating processor.  From section 5 of the XML 1.0 
spec, second ed.,:

Definition: Validating processors must, at user option, report violations of 
the constraints expressed by the declarations in the
Document Type Declaration,
and failures to fulfill the validity constraints given in this specification.] 
To accomplish this, validating XML processors must read and process the entire
DTD and all external parsed entities referenced in the document. 

So issuing a fatal error seems correct to me--at any rate, issuing a warning 
would not be correct.  If you need another behaviour, you could try setting 
some or all of 

http://xml.org/sax/features/external-general-entities,
http://xml.org/sax/features/external-parameter-entities,
or http://apache.org/xml/features/nonvalidating/load-external-dtd 
It would be good to hear all these features work:  I'm not sure whether they've 
ever been throoughly tested...

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org