in reply to XML format help

I've found that using these attributes to xml out should help to keep the xml in the same format. check perldoc XML::Simple for more options that might help you. keyattr=>[],noattr=>1