There's more than one way to do things | |
PerlMonks |
Re^4: XML Parse Change a Value and Write Backby bitingduck (Chaplain) |
on Nov 03, 2012 at 01:12 UTC ( [id://1002065]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|