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 Mike Starr <mi...@air2web.com> on 2002/05/06 18:27:40 UTC

SystemID is null when parsing DOCTYPE

It appears that Xerces-J 2.0.1 has a bug when parsing a DOCTYPE declaration
with just a SYSTEM identifier.  Here is my XML snippet:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE a2wml SYSTEM "http://localhost/dtd/api.dtd" >
<a2wml></a2wml>

When I print the publicId and systemId in an entity resolver that a register
with the parser, both are NULL.  The spec docs for the "resolveEntity"
method say that I should be able to use the systemId when performing
customized DTD loopkups.

Also, XercesJ 1.4.4 reported the systemID as "http://localhost/dtd/api.dtd".


-Mike



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