Reading XML doc

clemboclembo Member Posts: 122
I'm trying to use The Google Distance Matrix API.
This is link http://code.google.com/intl/it-IT/apis/ ... ncematrix/

I need to send request and get result from xml doc.
Document response is similar to this:
<DistanceMatrixResponse>
<status>OK</status>
<origin_address>Vancouver, BC, Canada</origin_address>
<destination_address>San Francisco, Californie, États-Unis</destination_address>
<row>
<element>
<status>OK</status>
<duration>
<value>340902</value>
<text>3 jours 23 heures</text>
</duration>
<distance>
<value>1732128</value>
<text>1 732 km</text>
</distance>
</element>
</row>
</DistanceMatrixResponse>

Ho I can read response? I need to get distance value.
I'm newbie in XML management..

Comments

  • clemboclembo Member Posts: 122
    Anyone can help me?
  • ta5ta5 Member Posts: 1,164
    Hi Clembo
    Search for xml dom and web service response. You should get ample of response.
    Hope this helps
    Thomas
Sign In or Register to comment.