Updating XML using XPath

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • marijuanated@gmail.com

    #1

    Updating XML using XPath

    Hi All,

    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.

    Thanks,
    Sundar

  • Fredrik Lundh

    #2
    Re: Updating XML using XPath

    marijuanated@gm ail.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>

    Comment

    Working...