How how can I get a text from inside a node using xpath?
For now I'm doing it like this:
$temp= $content->xpath('qwe/qwe');
$temp = each($temp[0]);
return $temp['value'];
But as you can see it's far from good solution :(
In c# it is as easy as
public string readXmlVar(string xpath)
{
XmlNode xmlNode = xml.SelectSingleNode(xpath);
return xmlNode.InnerText;
}
return (string) $temp;