How to reference ExtendedData in array in Geocode XML Response

eradunfa

New Member
I am trying to parse a Geocode XML Response. I can reference individual elements using something like this:\[code\]$xml->Response->Placemark->address;\[/code\]But how do I reference the attributes array contained in ExtendedData. What would be the best way to iterate over this array and retrieve the values of north, south, east, west?Here is the relevant portion of the XML Response:\[code\][ExtendedData] => SimpleXMLElement Object ( [LatLonBox] => SimpleXMLElement Object ( [@attributes] => Array ( [north] => 43.7513996 [south] => 43.7487017 [east] => -79.3456315 [west] => -79.3483294 ) ) )\[/code\]Thanks for taking a look.
 
Back
Top