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/29 18:52:46 UTC

DO NOT REPLY [Bug 6105] New: - null system id on external entity causes obscure error

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=6105>.
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=6105

null system id on external entity causes obscure error

           Summary: null system id on external entity causes obscure error
           Product: Xerces2-J
           Version: 2.0.0 [beta 4]
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: SAX
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: chris_mccabe@choicehotels.com


If you return an InputSource created from an InputStream from a custom
EntityResolver, and the systemId is not set to anything, the parser will produce
the following error:

The processing instruction target matching "[xX][mM][lL]" is not allowed.



For example, if you do the following in the resolveEntity method of the
EntityResolver:

return new InputSource(new FileInputStream(publicid));

The error will result.  Setting the system id to an empty string solves the
problem and the parse succeeds without errors.  I don't know whether or not a
null system id should be allowed, but either way the error message is very
misleading.

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