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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save XML Node text to file or post results back as HTML

Status
Not open for further replies.

harleychick

Programmer
Jun 10, 2002
16
US
I am working on an HTML page that runs JavaScript to retrieve XML data. This data will need to be read by a .Net program for processing and automated alerts. I have code that gets the results from a XML request. I can display the results back on the webpage using the document.write command. If I read the HTML results from my .Net program, it reads the script and not the data posted back.

When the webpage is opened, I really need to save the results to a file or post them back to the calling webpage as HTML so that another program can read the HTML page source code to find the data it needs to send out automated alerts. Any ideas??

Below is the code I have:

Code:
xmlRequest.send(soapBody);
xmlDoc.loadXML(xmlRequest.responseText);
var token2;
var node = xmlDoc.selectSingleNode("//GetRTPPricesResponse/GetRTPPricesResult");
if ( node != null ) {
   token2 = node.text;
}
document.write(token2);
 
I am actually trying that approach right now. The problem is the .Net program was written by someone else and I'm not that familiar with .Net. I've been searching the internet trying to find code samples to do the same thing I have coded in JavaScript.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top