I want use $xml->xpath for an XML file.
The first line below works successfully but second line does not work.
$xml = simplexml_load_string(decode(file_get_contents('http://www.file.net/name.xml')));
if($xml) {
$dataObjects = $xml->xpath('/feed/in/test[@id="0603162"]'); // First line
$xmlObjects = $dataObjects->xpath('/get/type[@name="333"]'); // Second line
print_r($xmlObjects);
}
var_dump($dataObjects);return ?