[XML-SIG] DocumentFragment ??

Andrew Clover and at doxdesk.com
Tue May 4 09:56:35 EDT 2004

Kevin Thackray <kevin.thackray at clarisys.fr> wrote:

> And i raise an exception at the same place :

Indeed, the same problem remains:

>        self.headerDoc = DocumentFragment()

You shouldn't instantiate a DocumentFragment directly. Instead use the 
standard createDocumentFragment method of the Document you want it to 
belong to.

Practically, what happens in this case is that it creates a 
DocumentFragment with no ownerDocument. This then causes an error when 
the ownerDocument is next checked (when you try to clone it).

Andrew Clover
mailto:and at doxdesk.com

More information about the XML-SIG mailing list