I got it working sorta, but when I do the following code it returns nothing, no errors:
$ItemInfo = new SimpleXMLElement(file_get_contents($CatogoryLoc."/".$ItemID.".img.xml"));
$reqJob = $ItemInfo->xpath("//int[@name='reqJob']");
echo $reqJob[0];
But when I do:
$ItemInfo = new SimpleXMLElement(file_get_contents($CatogoryLoc."/".$ItemID.".img.xml"));
$reqJob = $ItemInfo->xpath("//int[@name='reqJob']");
print_r($reqJob[0]);
It Returns:
SimpleXMLElement Object ( [@attributes] => Array ( [name] => reqJob [value] => 0 ) )
But It has "=> 0" and the value is 0.
(By the way, I'm using a new XML document, the only thing different is the value of reqJob)