in reply to Re^3: XML Parse Change a Value and Write Back
in thread XML Parse Change a Value and Write Back

You might get by with XML::Treebuilder. You build a tree from the original XML, and use XML::Element to find where you want to insert new elements and insert them, then dump the tree back to a file with the appropriate pretty printing. If I have time later I'll try to post a simple example. It's not as simple as XML::Simple, but it's not as much to wade through as XML::LibXML.
  • Comment on Re^4: XML Parse Change a Value and Write Back

Replies are listed 'Best First'.
Re^5: XML Parse Change a Value and Write Back
by anshumangoyal (Scribe) on Nov 03, 2012 at 11:08 UTC
    Treebuilder is again good for parsing and writing the xml but its very difficult to find the node and modify a parameter value.