
22/06/2009, 13:36
|
| | Fecha de Ingreso: junio-2009
Mensajes: 1
Antigüedad: 15 años, 10 meses Puntos: 0 | |
Leer XML con asp Hola
Estoy buscando la manera de leer un XML con asp, he encontrado mucho codigo pero ninguno me sirve para leer el formato que tengo, y no logro entender como se hace.
El formato es con atributos, el xml es el que resulta de consultar GOOGLE WHEATER
Si alguien puede darme una idea de como se lee se los voy a agradecer mucho
Este es el xml:
<xml_api_reply version="1">
<weather module_id="0" tab_id="0" mobile_row="0" mobile_zipped="1" row="0" section="0">
<forecast_information>
<city data="Neuquen, Neuquén"/>
<postal_code data="neuquen"/>
<latitude_e6 data=""/>
<longitude_e6 data=""/>
<forecast_date data="2009-06-22"/>
<current_date_time data="2009-06-22 18:00:00 +0000"/>
<unit_system data="SI"/>
</forecast_information>
<current_conditions>
<condition data=""/>
<temp_f data="53"/>
<temp_c data="12"/>
<humidity data="Humedad: 10%"/>
<icon data=""/>
<wind_condition data="Viento: NO a 23 km/h"/>
</current_conditions>
<forecast_conditions>
<day_of_week data="lun"/>
<low data="1"/>
<high data="10"/>
<icon data="/ig/images/weather/sunny.gif"/>
<condition data="Despejado"/>
</forecast_conditions>
<forecast_conditions>
<day_of_week data="mar"/>
<low data="-2"/>
<high data="12"/>
<icon data="/ig/images/weather/sunny.gif"/>
<condition data="Despejado"/>
</forecast_conditions>
<forecast_conditions>
<day_of_week data="mié"/>
<low data="-3"/>
<high data="11"/>
<icon data="/ig/images/weather/sunny.gif"/>
<condition data="Despejado"/>
</forecast_conditions>
<forecast_conditions>
<day_of_week data="jue"/>
<low data="0"/>
<high data="11"/>
<icon data="/ig/images/weather/mostly_sunny.gif"/>
<condition data="Parcialmente soleado"/>
</forecast_conditions>
</weather>
</xml_api_reply> |