[XML-SIG] Minidom bugs/questions

Paul Prescod paulp@ActiveState.com
Wed, 07 Feb 2001 13:02:31 -0800

"Martin v. Loewis" wrote:
> I think this code was completely bogus. The author apparently thought
> of creating DocumentTypes, in which case publicId and systemId would
> be required. However, the SAX locator does not provide that
> information (atleast not for the DTD; rather for the document itself),
> nor were we in the process of creating document types.

I do not think that minidom should support any DTD information. I would
advise that you should just remove any code relating to public and
system identifiers. It was not there originally and I don't think it is

> It seems that the processing of the doctype argument is also
> incorrect: It should *not* create one given the qualifiedName, atleast
> I can't find any indication that it should. It MUST set the
> ownerDocument, though, which it doesn't. I'm not sure whether the
> doctype needs to appear in the childNodes of the Document, can anybody
> clarify this?

Yes, the DocumentType would be a child of the Document. But I don't
think we should have doctype at all...leave that to 4dom.

 Paul Prescod