Hi, having trouble with something. I have the following function
The passed variable $serverResponsePricing is a load of XML code. I load it in, register the namespaces, and then evaluate it. The XML pretty much looks like the following in its simple form.
$dom = new DOMDocument('1.0', 'UTF-8');
$xpath = new DOMXPath($dom);
$priceSolution = $xpath->evaluate('//test:PriceRsp/test:PriceResult/test:PricingSolution');
What I am attempting to do with the first function is return PricingSolution and anything contained within it.
What I am doing doesnt seem to work though, I don't know if I really need to evaluate it? I am used to getting hold of single nodes using getAttribute, so trying to return the whole block is a bit different to me.
Any advise appreciated.