You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Stephen Crawley <cr...@dstc.edu.au> on 2000/12/06 06:45:08 UTC
Bug in Xerces 1.2.2 (?) -- getElementById() fails without validation
I'm trying to use Document.getElementId() on an Xerces 1.2.2 DOM
Document object created as follows:
DOMParser parser = new DOMParser();\
parser.parse(input);
doc = parser.getDocument();
a getElementById("someId") call returns null, and getIdentifiers() is
returning an empty enumeration.
If I enable DTD validation before parsing the document; i.e.
parser.setFeature("http://xml.org/sax/features/validation", true);
then getElementById("someId") works.
Is this a bug?
-- Steve