p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Register | 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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 25th, 2004, 10:52 AM
ak ak is offline
Authorized User
Points: 155, Level: 3
Points: 155, Level: 3 Points: 155, Level: 3 Points: 155, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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")



ak
__________________
ak
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old March 2nd, 2004, 12:44 PM
Friend of Wrox
Points: 4,754, Level: 29
Points: 4,754, Level: 29 Points: 4,754, Level: 29 Points: 4,754, Level: 29
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

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 03: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 11:04 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc