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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to