WARNING FOR PHP5 USERS! (if you are having xpath problems)
There seem to be several versions of the DOM library/extension arround, it would appear that the one in this page is for PHP4 only, while this is the one in PHP5:
http://us2.php.net/manual/en/ref.dom.php
See the DOMXPath class for xpath functions.