in reply to parse, edit and save in the same XML file
Please show your code that uses XML::Twig, and show us some example XML input and output.
I also recommend to first write the output to a file with a different name, and only after that succeeded, delete the orignal file and rename the new one. That way your file doesn't get lost if there's an error during processing.
|
|---|