Thanks Mrame, your answer has greatly helped.
I'm using simpleXML/ XPATH/ PHP to pull the contents of the XML (I'm not using XSL). I've got as far as printing the array - The following code prints this:
$area = $xml->xpath("/country/city/town[@placeid=$x]/following-sibling::areas[1]");
print_r($area);
and outputs:
Array ( [0] => SimpleXMLElement Object ( [area] => Array ( [0] => A [1] => B [2] => C ) ) )
but how do I only print the area content (with a line break or
if possible) e.g.
A
B
C
Any help would be great.
Thanks