in reply to XPath command line utility...

You might also be interested in XML::XSH2, that features the xsh command line and scripting utility.