XML, the Perl Way

XML::XPathEngine

XML::XPathEngine is a fork of XML::XPath that can be used to add XPath query to other XML modules. The fork removed the dependency to XML::Parser.

It requires the XML module to offer a tree API that behaves like a DOM tree, meaning that its nodes implement the methods needed by XML::XPathEngine. It then lets you perform full XPath queries on the tree.