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.
In reply to Re: parse, edit and save in the same XML file
by moritz
in thread parse, edit and save in the same XML file
by veritas_penang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |