Hello,
When I use the followng code:
$dom = new domDocument;
$dom->load($xml);
$xpath = new domXPath($dom);
$results = $xpath->query('/');
I get the following error message on the last line:
Warning: Invalid XPath Context in [...] on line [...]
I have a feeling I can fix this problem by calling:
$xpath->registerNamespace();
but am unsure about which arguments to use.
Thanks In Advance for any pointers.
Regards,
JW