| Welcome to WebmasterWorld Guest from 18.104.22.168 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Pubcon Platinum Sponsor 2014|
|Help with Google Maps xml output|
I use PHP 5.0
I am trying to read the PostalCodeNumber node from the Google Maps xml output below:
$xmlstr = "<xml>
<name>1600 amphitheatre mtn view ca</name>
1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA
<ThoroughfareName>1600 Amphitheatre Pkwy</ThoroughfareName>
$xml = new SimpleXMLElement($xmlstr);
$zipcode = $xml->AddressDetails->PostalCode->PostalCodeNumber;
for some reason it's not working. anyone got any ideas?
Thank you in advance for your help.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved