rocku has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
I want to edit (actually update) an XML file with a HTML form. I have a consistent naming scheme for <input> elements, which then I parse with CGI::State into a Hashref. I parse the XML file to a second Hashref using XML::Simple. Then I use Hash::Merge to combine them together, and finally XML::Simple again to write the new XML file. Everything would be fine except that some elements have attributes and others don't, and XML::Simple loses the structure along the way. I thought of implementing XML::Smart (which preserves the structure) for this task, but I didn't find any simple solution to update it using the Hashref created with CGI::State.