is it possible for xpath to take dynamic values inside a foreach;;
p.e i have try with the bellow code and i get: Trying to get property of non-object error
foreach ($srcov as $src) {
$qCoverXml = $coverXml->xpath('//cover/code[.= "'. $srcC->Code .'" ]/parent::*');
echo $qCoverXml->name;
}
I'm doing something wrong; thanks