I'm creating a script that will take users location from their ip. I saw this api.But know idea how i can get them in array and print them.
Here is a sample link: http://ipinfodb.com/ip_query.php?ip=74.125.45.100&timezone=true
This a sample respones
<Response>
<Ip>74.125.45.100</Ip>
<Status>OK</Status>
<CountryCode>US</CountryCode>
<CountryName>United States</CountryName>
<RegionCode>06</RegionCode>
<RegionName>California</RegionName>
<City>Mountain View</City>
<ZipPostalCode>94043</ZipPostalCode>
<Latitude>37.4192</Latitude>
<Longitude>-122.057</Longitude>
<TimezoneName>America/Los_Angeles</TimezoneName>
<Gmtoffset>-25200</Gmtoffset>
<Isdst>1</Isdst>
</Response>
How do i get the information from this in an array and print?