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 Ramesh <ra...@enode.com> on 2000/06/11 07:53:52 UTC

getElementById() doesn't work in Xerces if...

If I change the document-class-name property of the Xerces DOMParser class,
then getElementById() stops working even if the replacement document class
is derived from org.apache.xerces.dom.DocumentImpl.

This is happening because DOMParser initializes fDocumentImpl to a non-null
value only if (documentClassName.equals(DEFAULT_DOCUMENT_CLASS_NAME)), and
the identifier registration code is called from startElement() only if
fDocumentImpl is not null. The fact that fDocument holds a valid reference
to the replacement document implementation does not seem to matter.

Is this a known bug in Xerces 1.1.1?

Ramesh