Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do I read xml from variable? 1

Status
Not open for further replies.

ralph2006

Programmer
Jun 6, 2006
1
US
using vbscript...

I am able to read from a file...
Code:
set xmlDoc = server.createobject("MSXML2.FreeThreadedDOMDocument")
xmlDoc.async = false
xmlDoc.setProperty "ServerHTTPRequest", true
xmlDoc.load( server.mappath("thedata.xml") )


But I am NOT able to read from a variable. How can I get this to work? This is what I WANT to do..
Code:
dim xmlResults : xmlResults = theXMLdataString	
set xmlDoc = server.createobject("MSXML2.FreeThreadedDOMDocument")
xmlDoc.async = false
xmlDoc.setProperty "ServerHTTPRequest", true
xmlDoc.load( xmlResults )


THanks,
Ralph
 
>xmlDoc.load( xmlResults )
[tt]xmlDoc.load[red]XML[/red] xmlResults[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top