What built in utilities are there that can evaluate XML XPath statements in CentOS?

Its needed to grab certain info from <a href="some.html">some</a> from a page with a python, perl or shell script.

Hints on what to use would be appreciated.
Chris