[XML-SIG] Parser not preserving DTD?

Martin v. Loewis martin@v.loewis.de
03 Sep 2002 21:13:50 +0200


"Matthew Shomphe" <Matthews@heyanita.com> writes:

> Is this a bug?  If not, how can I preserve DTDs when reading in and
> manipulating a document?

It's not clear whether this is a bug. There is no requirement in the
DOM spec, or elsewhere, that the DOCTYPE must be roundtrip - yet it is
an obvious user requirement.

So this could be a bug, but fixing it is very difficult - in
particular since the lower-level parsers fail to provide the
information.

If you really need this, I encourage you to investigate and contribute
a fix.

Regards,
Martin