Check out the example in the PHP manual: http://us2.php.net/manual/en/simplexmlelement.xpath.php

Just curious, what displays when echo $result->textContent; executes?