Re^2: XML::Lib XML question contains a discussion in case you need to include namespaces into the XPath query.
http://pgfearo.googlepages.com/ Sketchpath provides a great editor for XPath - you create a query by clicking on the desired node in the XML tree.

In reply to Re: Stepping up from XML::Simple to XML::LibXML by weismat
in thread Stepping up from XML::Simple to XML::LibXML by grantm

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":