XML, the Perl Way

App::xml_grep2

A tool (packaged as a CPAN module) that lets you use XPath to grep XML files. Its options are designed to mimick grep as faithfully as possible, when it makes sense. It is based on XML::LibXML and libxml2, hence the name.

Git repo: xml_grep2 master, on github