XML::DOM::XPath allows you to use XML::XPath methods to query a DOM.
This is often much easier than relying only on getElementsByTagName.

It lets you use all of the XML::DOM methods.

WWW: http://search.cpan.org/dist/XML-DOM-XPath/