Hello,
I need to return the areas connected with the town placeid attribute of an XML document. The town placeid is a variable equal to a current page variable $x.
e.g.
xpath("/country/city/town[@placeid=$x]");
How can I return the areas for each using simpleXML/XPATH?
<country>
<city>
<town placeid="" />
<areas>
<area>A</area>
<area>B</area>
<area>C</area>
<areas>
</city>
</country>
Thanks!