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 September 3rd, 2009, 12:22 AM
Registered User
Join Date: Sep 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP wrapper for XML?

Im programming in classic ASP.

I have an xml string that I have to parse and eventually insert into the fields into a database. What is the most efficient way to get access to elements of an XML string?

For instance, I'd like to implement something like this:


for x=0 to MyNode.size
Response.Write MyNode(5).("FirstName") & MyNode(5).("LastName")

I am currently using XMLDOM, however it takes a long time to iterate the children of the node. Perhaps there is a solution I can buy or get free on the internet?
Old September 3rd, 2009, 06:30 AM
Friend of Wrox
Join Date: Nov 2007
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts

With classic ASP you usually use MSXML for XML parsing. MSXML since version 3 (which is installed anywhere where IE 6 or later is installed) supports XPath 1.0 with methods like selectNodes and selectSingleNode.
On most systems you will nowadays also find MSXML 6 as it is part of the OS since Windows XP SP 3 and Vista I think.
I guess you are already using MSXML when you say "I am currently using XMLDOM".
As for the performance issue, you could check whether MSXML 6 performs better than MSXML 3 for your queries.
Martin Honnen
Microsoft MVP (XML, Data Platform Development) 2005/04 - 2013/03
My blog

Similar Threads
Thread Thread Starter Forum Replies Last Post
a wrapper class for visual C++ 6.0 .DLL hendyhanusin VB.NET 2002/2003 Basics 1 June 5th, 2007 01:53 AM
Using the Stored Procedure Wrapper rHasan BOOK: Professional VB 2005 ISBN: 0-7645-7536-8 1 March 29th, 2007 07:58 AM
ASP.NET COM Wrapper for Web Service ashettleroe Classic ASP Professional 0 August 12th, 2005 05:30 PM
ActiveX wrapper JeffMM Classic ASP Components 0 March 23rd, 2004 02:56 AM
ASP Wrapper Prob Hotwax ASP.NET 1.0 and 1.1 Professional 0 December 3rd, 2003 05:56 AM

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