Through a procedure and the Google Maps API have managed to pass the town and the place to go to find the distance between them.
The results were the following XML file:
<?xml version="1.0" encoding="UTF-8" ?>
- <DistanceMatrixResponse>
<status>OK</status>
<origin_address>Bologna, Italia</origin_address>
<destination_address>Milano, Italia</destination_address>
<destination_address>Genova, Italia</destination_address>
- <row>
- <element>
<status>OK</status>
- <duration>
<value>8282</value>
<text>2 ore 18 min</text>
</duration>
- <distance>
<value>220486</value>
<text>220 km</text>
</distance>
</element>
- <element>
<status>OK</status>
- <duration>
<value>11321</value>
<text>3 ore 9 min</text>
</duration>
- <distance>
<value>309019</value>
<text>309 km</text>
</distance>
</element>
</row>
</DistanceMatrixResponse>
How do I import this XML file into a cursor like this:
Departure | Arrival | Duration | Distance
Sorry for my English.
Thank you in advance for your help.
F.
The results were the following XML file:
<?xml version="1.0" encoding="UTF-8" ?>
- <DistanceMatrixResponse>
<status>OK</status>
<origin_address>Bologna, Italia</origin_address>
<destination_address>Milano, Italia</destination_address>
<destination_address>Genova, Italia</destination_address>
- <row>
- <element>
<status>OK</status>
- <duration>
<value>8282</value>
<text>2 ore 18 min</text>
</duration>
- <distance>
<value>220486</value>
<text>220 km</text>
</distance>
</element>
- <element>
<status>OK</status>
- <duration>
<value>11321</value>
<text>3 ore 9 min</text>
</duration>
- <distance>
<value>309019</value>
<text>309 km</text>
</distance>
</element>
</row>
</DistanceMatrixResponse>
How do I import this XML file into a cursor like this:
Departure | Arrival | Duration | Distance
Sorry for my English.
Thank you in advance for your help.
F.