Originally posted as a Categorized Question.
In reply to How do I create an XML Tree with XML::simple by basicdez