[XML-SIG] Generating XML from scratch

Andrew Clover and-xml at doxdesk.com
Sun Feb 13 10:42:21 CET 2005

John W. Shipman <john at nmt.edu> wrote:

> True for Python 2.3, but my principal workstation still has
> Python 2.2, and even when I use the factory methods, the
> .ownerDocument attribute of the DocumentFragment is None.

Ugh, you're right, it's a typo in createDocumentFragment:

         d = DocumentFragment()
         d.ownerDoc = self

(instead of ownerDocument.)

Could you perhaps install PyXML on the 2.2 setup? The 2.2 minidom has a 
few other bugs you might also wish to avoid.

Andrew Clover
mailto:and at doxdesk.com

More information about the XML-SIG mailing list