[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: How can I add xml values to ASP String using DOM


darren mcbride
darren.mcbride@i... [mailto:darren.mcbride@i...] wrote:

> I am using the XML DOM to read the contents of an XML page. I want to
> assign the contents of the XML to a string and add this string to a 
> session variable in ASP..
> - i am familiar with creating the DOM object but after that I cannot
> retrieve the individual XML values on the ASP page..
> 
> Any suggestions on how I can do this???


I'm not sure I understand what you're trying to do. If you're receiving
an XML document in the request stream that needs to be processed, and
then saved in a user session, you can do something like this (excluding
error handling, of course):

<%
Set doc = Server.CreateObject("MSXML2.DOMDocument.4.0")
doc.async = false
doc.load(Request)
' do processing here
Session("userDoc") = doc
%>

You need to use the free-threaded version of the DOMDocument class if
you plan to store it at application (global) scope.

--
Aaron Skonnard <http://skonnard.com>, DevelopMentor <http://develop.com>
   Essential XML Quick Reference available online in PDF format...
      <http://develop.com/books>



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.