Hi,
I am new to XML and I was wondering if someone could give me a helping hand parsing an XML document with ASP.
I have the XML page loading into the ASP page fine, I just need a hand with referencing and formatting particular elements.
For example with the XML document below, what I want to write out is:
Wednesday 20th Feb
Day
Temperature:12
Wind:Light Breeze
Night
Temperature:22
Wind:Light Hurricane
The XML is:
-<DOCUMENT>
-<WEATHER type="Region">
<DATE>Wednesday 20th Feb</DATE>
- <FORECAST time="Day">
<TEMP>12</TEMP>
<WIND>Light Breeze</WIND>
</FORECAST>
- <FORECAST time="Night">
<TEMP>22</TEMP>
<WIND>Hurricane</WIND>
</FORECAST>
</WEATHER>
</DOCUMENT>
I'm not too worried about formatting for the moment so I want to avoid XSL if possible.
If anyone could help I would really appreciate it! Thanks!
I am new to XML and I was wondering if someone could give me a helping hand parsing an XML document with ASP.
I have the XML page loading into the ASP page fine, I just need a hand with referencing and formatting particular elements.
For example with the XML document below, what I want to write out is:
Wednesday 20th Feb
Day
Temperature:12
Wind:Light Breeze
Night
Temperature:22
Wind:Light Hurricane
The XML is:
-<DOCUMENT>
-<WEATHER type="Region">
<DATE>Wednesday 20th Feb</DATE>
- <FORECAST time="Day">
<TEMP>12</TEMP>
<WIND>Light Breeze</WIND>
</FORECAST>
- <FORECAST time="Night">
<TEMP>22</TEMP>
<WIND>Hurricane</WIND>
</FORECAST>
</WEATHER>
</DOCUMENT>
I'm not too worried about formatting for the moment so I want to avoid XSL if possible.
If anyone could help I would really appreciate it! Thanks!