[XML-SIG] 0.5.4 and documentType

Lars Marius Garshol larsga@garshol.priv.no
31 May 2000 10:02:25 +0200


* Jarek Wilkiewicz
| 
| I tried creating a DOM tree from an xml file, and the
| document.documentType returns a None. Is implementation of the
| DocumentType missing from the current PyXML release, or am I doing
| something wrong?

The problem is that SAX, which PyDOM uses to read in the document,
does not report the DOCTYPE declaration, and so PyDOM can't include it
in the document. 4DOM has the same problem.

SAX 2.0 will include this, and it's possible that 4DOM takes advantage
of that in it's Sax2 reader, but I haven't been able to look at that
yet.

--Lars M.