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
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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:

MyNode.LoadXML(XML_STRING)

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

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?
Reply With Quote
  #2 (permalink)  
Old September 3rd, 2009, 06:30 AM
Friend of Wrox
Points: 6,676, Level: 34
Points: 6,676, Level: 34 Points: 6,676, Level: 34 Points: 6,676, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2007
Location: Germany
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
Default

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
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
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



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


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