Wrox Programmer Forums
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 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 February 20th, 2004, 05:14 PM
Authorized User
Join Date: Aug 2003
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Default Reading XML from ASP

I want to be able to read XML from ASP/VBscript. Can someone please direct me to available resources. So far, I have found out that I could use MSXML2, but I have not been able to find any documentation on that. Please help!!

My XML document will reside on the network. How do you do read a file in ASP??

Thanks in advance
Old February 20th, 2004, 11:34 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts

When you download the MSXML 4 Parser, you should also get the MSXML SDK, which is an excellent resource for XML in itself.

You can use the DOM objects to access an XML file. Depending on the location of the XML file, you can hard-code a path to the XML file, or use the Server.MapPath. For documentation, if you have VB or Interdev, the MSDN should have information on it. I found most of what I learned on the web at other peoples examples. It would be a book to give you all of what you can do with XML, but in your research, you should look up some of the following objects and methods to start:

selectSingleNode method
selectNodes method
createElement method
createAttribute method
XPath syntax (very powerful language)
XSL stylesheets (also known as XSLT)

Hope this helps,

Old February 26th, 2004, 03:26 PM
Authorized User
Join Date: Aug 2003
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts

Thanks Brian. Appreciate that.

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 file using ASP itHighway Classic ASP XML 1 June 7th, 2006 06:16 AM
Reading XML file using ASP itHighway Classic ASP Basics 1 May 1st, 2006 06:21 PM
Reading XML file using ASP itHighway XSLT 2 April 29th, 2006 04:52 AM
Reading XML string using asp itHighway Classic ASP XML 2 March 10th, 2005 11:54 PM

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