in reply to XML package for parsing values in the opening tag.

I think XML::Smart will do what you want.
  • Comment on Re: XML package for parsing values in the opening tag.