Im sending an http request and get an xml file returned.
now the only information I need there is
<b><coordinates>-82.265905,43.959700,0</coordinates> </b>
the first # is longitude (-82.265905)
the last # is latitude (43.959700)
I want to extract just this data from the xml file and write it to my database...
Regards
Craig
Code:
<?xml version="1.0" encoding="UTF-8" ?>
- <kml xmlns="[URL unfurl="true"]http://earth.google.com/kml/2.0">[/URL]
- <Response>
<name>101 My Street, Toronto, Canada</name>
- <Status>
<code>200</code>
<request>geocode</request>
</Status>
- <Placemark>
<address>101 My Street, Toronto, Canada</address>
- <AddressDetails xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0">
- <Country>
<CountryNameCode>CA</CountryNameCode>
- <AdministrativeArea>
<AdministrativeAreaName>ON</AdministrativeAreaName>
- <Locality>
<LocalityName>Toronto</LocalityName>
- <Thoroughfare>
<ThoroughfareName>101 My Street</ThoroughfareName>
</Thoroughfare>
</Locality>
</AdministrativeArea>
</Country>
</AddressDetails>
- <Point>
<coordinates>-82.265905,43.959700,0</coordinates>
</Point>
</Placemark>
</Response>
</kml>
now the only information I need there is
<b><coordinates>-82.265905,43.959700,0</coordinates> </b>
the first # is longitude (-82.265905)
the last # is latitude (43.959700)
I want to extract just this data from the xml file and write it to my database...
Regards
Craig