Your answer is in the docs for XML::Simple. It's even marked as "'important' - don't use the module until you understand this one". Specifically, check out ForceArray. You will lose the <?xml...> lines, though. I don't think those are kept in memory.
In reply to Re: Write XML file
by ikegami
in thread Write XML file
by Maxim
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |