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

Gerhard Häring haering_python@gmx.de
Wed, 12 Dec 2001 09:12:01 +0100


Le 12/12/01 ā 07:15, Martin v. Loewis écrivit:
> > 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!?
> 
> Indeed. In XML, a document contains only a single element; it is an
> error if a document has two or more elements.

Thanks, that got me on the right track. My XML stuff now works how I
wanted it.

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')))