writing xml tree

david farning dfarning at localhost.localdomain
Sat Nov 22 16:30:23 EST 2003


I am doing my first work in python/xml

Is is possiable to write a xmlTree in a single command?
for example

doc = libxml2.parseFile (filename)
# add node to doc

doc.write(filename)   ??????????????

I have seen several examles writing one element or line at a time, but never
the whole tree.

Thanks
Dave Farning 





More information about the Python-list mailing list