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 Randy Waki <rw...@flipdog.com> on 2000/07/25 02:07:33 UTC

Bug: DOMParser adds bogus DocumentType node

If an input document has no DTD, the non-validating DOM parser in Xerces
1.1.2 (org.apache.xerces.parsers.DOMParser) adds an empty DocumentType
node after the document element.  This seems wrong on two counts:

   1. The DocumentType node should appear before, not after, the
      document element.
   2. There was no DTD, so there should be no DocumentType node at all.

-- Randy