Parsing XML Data from a remote site
Can someone guide me at how I find out how to parse XML information generated from a remote web site (a shipping company quote) into my site using either classic ASP or ASP.NET.
The code generated is as follows.
<?xml version="1.0" ?>
- <ABF>
<QUOTEID>XMF1121526</QUOTEID>
<CHARGE>197.36</CHARGE>
<ADVERTISEDTRANSIT>1 Days</ADVERTISEDTRANSIT>
<DISCOUNTPERCENTAGE>72%</DISCOUNTPERCENTAGE>
<TPDELIVERYCHARGE />
<TPCHARGEPERBOX />
<CODFEE />
- <ORIGTERMINFO>
<ORIGTERMADDRESS>880 FORD ST</ORIGTERMADDRESS>
<ORIGTERMCITY>COLORADO SPRINGS</ORIGTERMCITY>
<ORIGTERMSTATE>CO</ORIGTERMSTATE>
<ORIGTERMZIP>80915</ORIGTERMZIP>
<ORIGTERMPHONE>7195969201</ORIGTERMPHONE>
</ORIGTERMINFO>
- <DESTTERMINFO>
<DESTTERMADDRESS>5871 N. BROADWAY</DESTTERMADDRESS>
<DESTTERMCITY>DENVER</DESTTERMCITY>
<DESTTERMSTATE>CO</DESTTERMSTATE>
<DESTTERMZIP>80216</DESTTERMZIP>
<DESTTERMPHONE>3032951561</DESTTERMPHONE>
</DESTTERMINFO>
<NUMERRORS>0</NUMERRORS>
</ABF>
Each time I try to read the information using Microsoft.XMLDOM and browing through the xmlDoc.documentElement.childNode I generate a security error, which, although this can be over-ridden by adjusting my browser security controls, will not be acceptable for general users.
I tried a different tack and saved the information as a file and tried to read the data into a datagrid and/or datalist bound to an XMLDatasource in Visual Studio 2005 but the file would not display. (I have experienced no problems with other XML files)
As a complete beginner with Visual Studio I don't know where to go now or what questions to ask.
I can find plenty of tutorials for parsing RSS feeds etc but nothing that seems to help with this problem
Can anyone help?
Thanks
__________________
Try our latest project www.nobanx.com Currency Exchange for members
|