Updating XML using XPath

Fredrik Lundh fredrik at pythonware.com
Wed Nov 1 02:45:51 EST 2006


marijuanated at gmail.com wrote:

> Is there a way that I can update the attributes of an XML node and MAKE
> IT PERSISTENT in the XML file through the Python XPath API? I tried the
> setContent method of the Node but i am only able to update the node
> variable not the file content itself. 

how about saving the DOM tree when you're done modifying it?

</F>




More information about the Python-list mailing list