OK, I was using v5.1.2. Now I am using v5.2.3.
I think you guys know this already, but in case you don't I am calling the program from the command prompt in Windoze.
Here is the code I am using now:
foreach($xml->xpath('/package/class/name/') as $name)
{
echo $name . "<br />\n";
}
And I am getting the following error msg:
Fatal error: Call to a member function xpath() on a non-object in C:\exampxml.php on line 4
I am not sure if this is an imporvement or not....:bemused: