XML, the Perl Way

XML::DOM::XPath

XML::DOM::XPath uses XML::XPath to add XPath to XML::DOM. if you use XML::DOM::XPath instead of XML::DOM then you get to use XML::XPath methods like findnodes, findnodes_as_string and findvalue, which let you get a lot more power than the basic getElementsByTagNames offered by XML::DOM.