Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
| Search | Today's Posts | Mark Forums Read
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 1st, 2006, 07:28 AM
Friend of Wrox
 
Join Date: May 2006
Location: Northampton, United Kingdom.
Posts: 107
Thanks: 1
Thanked 8 Times in 7 Posts
Default 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
 
Old June 1st, 2006, 08:25 AM
Friend of Wrox
 
Join Date: May 2006
Location: Northampton, United Kingdom.
Posts: 107
Thanks: 1
Thanked 8 Times in 7 Posts
Default

Hi,

To save every one time I've found an answer on this forum at http://p2p.wrox.com/topic.asp?TOPIC_ID=33240

Thanks anyway.





Similar Threads
Thread Thread Starter Forum Replies Last Post
[Resolved] Posting to Remote Site snufse ASP.NET 2.0 Basics 2 March 10th, 2008 12:11 PM
XML Parsing SCADA_Monkey XML 2 March 11th, 2007 03:20 PM
Remote Site Set Up Anne Harrington Dreamweaver (all versions) 1 April 7th, 2005 04:25 PM
Accessing a remote web site Ray Pinnegar Access VBA 2 July 24th, 2003 08:34 PM
remote exchange verification by web site mateenmohd Classic ASP Databases 0 June 4th, 2003 03:13 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.