Re: [XML-SIG] Problem using schema instead of DTD
by Andrew Clover other posts by this author
Jan 14 2005 11:54AM messages near this date
[XML-SIG] Problem using schema instead of DTD
|
Re: [XML-SIG] Problem using schema instead of DTD
& XSLT Tim van Erven <tve@[...].net> wrote:
> In the process a doctype is added automatically.
Yeah, 4DOM will do that. A null doctype is added at parse-time, for some
reason.
You can throw the doctype node out after parsing or before printing:
if document.doctype is not None:
document.removeChild(document.doctype)
or use one of the other DOM libraries that does not exhibit this behaviour.
--
Andrew Clover
mailto:and@[...].com
http://www.doxdesk.com/
_______________________________________________
XML-SIG maillist - XML-SIG@[...].org
http://mail.python.org/mailman/listinfo/xml-sig
Thread:
Tim van Erven
Andrew Clover
Mike Brown
Tim van Erven
Tim van Erven
|