Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XML
Password Reminder
Register
| FAQ | Members List | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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
Reply With Quote
  #2 (permalink)  
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.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 08:03 AM.


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