Hi,

I have problems retrieving values stored in an xml file after querying google map.

<% key="ABQIAAAA2poT_FwC2iusjDfxdQ334xTck5KJMuub6mQgK8LlUctd4aR5fxQL89Ottm3yg_YwCmewJxXelyuG2w"
q="51130 Vertus Rue 28 aout"

dim oXMLHTTP
Set oXMLHTTP = CreateObject("MSXML2.ServerXMLHTTP")
oXMLHTTP.open "GET", "http://maps.google.com/maps/geo?q="&server.URLEncode(q)&"&output=xml&key="&key,False
oXMLHTTP.send
url="http://maps.google.com/maps/geo?q="&server.URLEncode(q)&"&output=xml&key="&key
dim arrLL
arrLL=oXMLHTTP.responseText
%>

So far, so good, I response.write the arrLL variable and here's the xml I get

<?xml version="1.0" encoding="UTF-8" ?>
<kml xmlns="http://earth.google.com/kml/2.0"
<Response>
<name>51130 Vertus Rue 28 aout</name>
<Status>
<code>200</code>
<request>geocode</request>
</Status>
<Placemark id="p1">

<address>Vertus, France</address>
<AddressDetails Accuracy="4" xmlns="urnasis:names:tc:ciqsdschemaAL:2.0">
<Country>
<CountryNameCode>FR</CountryNameCode>
<CountryName>France</CountryName>
<AdministrativeArea>
<AdministrativeAreaName>Champagne-Ardenne</AdministrativeAreaName>
<SubAdministrativeArea>
<SubAdministrativeAreaName>Marne</SubAdministrativeAreaName>
<Locality>
<LocalityName>Vertus</LocalityName>
</Locality>
</SubAdministrativeArea>
</AdministrativeArea>
</Country>
</AddressDetails>
<ExtendedData>
<LatLonBox north="48.9345163" south="48.8758425" east="4.0632557" west="3.9351963" />
</ExtendedData>
<Point><coordinates>3.9992260,48.9051880,0</coordinates></Point>
</Placemark>
</Response></kml>


Now I'd like to retrieve each node and its value.
I tried following, but it only displays the value of some nodes but not the node names.

<%
dim xmldoc
set xmldoc=createobject("msxml2.domdocument")
xmldoc.loadxml arrLL
for i = 0 to xmldoc.documentelement.childnodes.length - 1
response.write xmldoc.documentelement.childnodes(i).text
next
%>

I'd like to transform <code>200</code> into
code="200".

The other question is, why isn't the <AddressDetails Accuracy="4" not displayed ?
There again I'd need to end up with something like
Accuracy="4"

Thanks in advance for your help

Regards