Parse XML data and append a new element using XML::Simple
问题 I'm using XML::Simple and XML::Dumper. I'm well aware of the issues surrounding the former module. If I could use an alternative library, I would. What I want to achieve is to load the XML, then append lines to it. This is my XML structure before the script has run. <person> <appearance> <param name="height" value="6,3"/> </appearence> </person> The script, or what I intended to code, should load this XML from a file, then append a <param> element onto <appearence> . I've attempted it using