in reply to Parsing an xml file

Assuming you've got well-formed XML you can use XML::Twig or XML::Simple. If they don't make manipulation simple enough, you can look at CPAN for an XML module that more specifically fits your needs.

But the XML you posted fails to parse with either of the modules I mentioned, as well as on the W3 School's XML Validator, and that makes it sort of tricky to provide a good working example for you.

If I were to use XML::Simple, I would probably start by using the XMLin() function to get a reference to a datastructure. I might use Data::Dumper to see what the structure looks like, and use that dump as the basis for determining where in the structure the data I need is hiding. XML::Simple does provide some basic options that alter the shape of the datastructure, so read the docs and maybe you can get the structure to be fairly easy to manipulate further.


Dave