How can I use XPath to get the value of <FL val="Account Owner"> by searching for the <FL val="Account Name"> tag?
I've been using the following PHP / XPath code:
$aan = "Company A";
$ContRow = "/results/Accounts/row['FL val=\"Account Name\"'='".$aan."']";
foreach ($Cxml->xpath($ContRow) as $Crow)
{
$ao = $Crow->FL[1];
echo $ao."<br />";
}
and the XML code:
<result>
<Accounts>
<row no="1">
<FL val="Account Name">
<![CDATA[Company A]]>
</FL>
<FL val="Account Owner">
<![CDATA[Owner's Name]]>
</FL>
</row>
</Accounts>
</result>