document as child in DOM ??

Juliano Freitas jubafre at atlas.ucpel.tche.br
Tue Nov 2 11:42:48 EST 2004


I have a document as a string:

xmltext = """<?xml version='1.0'?>
<root>
	<parara>text</parara>
</root>"""

then i transform the string into a document with fromString method.

i want tu put this "xmltext" as a child to another document called
"swdb"?
how can i do this??

<swdb>
  <root>
	<parara>text</parara>
  </root>
...
</swdb>

i tryed the importNode and appendNode, but i dont if i'm doing right!

Juliano Freitas




More information about the Python-list mailing list