NOTE: I have moved all my content over to my new site You can find the new version of the post here: https://solutr.com/posts/2011-11-22-generating-proper-xml-with-perl/
From Perl/Linux Junior System Administrator to System Automation Engineer in less than 20 years. I am still no developer.