Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP XML Using ASP 3 and XML. See also the XML category for more XML discussions not relating to ASP. NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP 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
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 25th, 2005, 07:01 PM
Friend of Wrox
Join Date: Oct 2004
Location: , , .
Posts: 198
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to itHighway
Default Reading XML string using asp

I'm working on a shipping charges calculator gateway. The response string send by the gateway is in xml format.

<?xml version="1.0"?><version></version><shipmentID>88889</shipmentID><origination><name>Zeeshan Ahmed</name><weight unit="LB">3.0</weight><dimensions unit="IN"><length>1.0</length>

How can I read different nodes of xml string using ASP. Like suppose if I want to read "WEIGHT" from xml string. How can I read it?

Any Idea..
Any Help....

Will be appciated.

Zeeshan Ahmed

Reply With Quote
  #2 (permalink)  
Old January 25th, 2005, 07:34 PM
Friend of Wrox
Points: 2,473, Level: 20
Points: 2,473, Level: 20 Points: 2,473, Level: 20 Points: 2,473, Level: 20
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: May 2004
Location: India
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts


Om Prakash
Reply With Quote
  #3 (permalink)  
Old March 10th, 2005, 11:54 PM
Registered User
Join Date: Mar 2005
Location: , , USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

You must be aware of using xml DOM obj, this is the simplest way to read from the XML node

Set objDoc = CreateObject("Microsoft.XMLDOM")
objDoc.async = False
objDoc.load("file.xml") or objDoc.LoadXml(xmlString)

Set Node = objXMLDoc.documentElement.selectSingleNode("Parent Node/NodeTextToRead")

  response.write Node.text
' reading the node value usiging text property
hope this will help you.
All the best.......

Reply With Quote

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
Reading XML through ASP jeffm_22 Classic ASP XML 3 June 11th, 2010 07:02 AM
Reading xml string from remote server niravp Classic ASP XML 2 June 10th, 2006 02:37 PM
Reading XML file using ASP itHighway Classic ASP XML 1 June 7th, 2006 06:16 AM
Reading XML file using ASP itHighway XSLT 2 April 29th, 2006 04:52 AM
Reading XML from ASP texasraven Classic ASP XML 2 February 26th, 2004 03:26 PM

All times are GMT -4. The time now is 05:23 PM.

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