[XML-SIG] Simple DOM question (writing DOM)

Gerhard Häring haering_python@gmx.de
Wed, 12 Dec 2001 02:56:16 +0100


Le 12/12/01 ā 01:41, Gerhard Häring écrivit:
> [about creating an empty Document]

Ok, I found it:

from xml.dom.DOMImplementation import implementation
doc = implementation.createDocument(None, None, None)

Now I'm having a strange problem: I can only add one element to a
document (using appendChild). For any further calls, I get an exception
about an invalid parent/child relationship!?

Gerhard
-- 
mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    http://www.cs.fhm.edu/~ifw00065/    OpenPGP public key id 86AB43C0
public key fingerprint: DEC1 1D02 5743 1159 CD20  A4B6 7B22 6575 86AB 43C0
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))