XML::Simple seems to do what I asked for below.
Please take a look at this thread:
XML::Simple needs to go!
In reply to Re: XML Parsing by Laurent_R in thread XML Parsing by nikmit