Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP XML
Password Reminder
| FAQ | Members List | 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 February 25th, 2004, 10:52 AM
ak ak is offline
Authorized User
Join Date: Sep 2003
Location: London, , United Kingdom.
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default store a chunk of xml in a string

I want to read an xml file in asp page then create a string variable inorder to store a chunk from that xml file inorder that i can send it to sql server as a varchar data via stored procedure. any help?

i have the first part which is read the xml file into asp page:
SET objXMLDoc_bannerClicks = Server.CreateObject("Microsoft.XMLDOM")
objXMLDoc_bannerClicks.async = False
blnFileExist = objXMLDoc_bannerClicks.Load("bannerClicks.xml")

Reply With Quote
  #2 (permalink)  
Old March 2nd, 2004, 12:44 PM
Friend of Wrox
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts

You can access the XML from the document (through the DOMDocument object) via the XML property (I think, it's been a while, but there is a property). You should be able to access XML at the node level also. I think you want to look for the XML and InnerXML properties. Look in the MSXML Parser SDK.
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
xml column chunk Ameur537 .NET Web Services 0 November 21st, 2008 03:06 PM
Appending a chunk of XML to document mattTyson Ajax 0 December 7th, 2006 12:47 PM
Appending a chunk of XML to the document mattTyson BOOK: Professional Ajax ISBN: 978-0-471-77778-6 0 December 7th, 2006 12:44 PM
DTS Package, XML task. Read XML file and store it Victoria SQL Server DTS 0 July 24th, 2006 02:43 PM
store hyperlink into a string. europhreak Classic ASP Basics 1 February 2nd, 2006 11:16 PM

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

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