If you are calling an XML service and expecting a reply in XML form parse it with MSXML...
code:
// -------------------------------------------------------------------
// XML request
function NewRequest(service)
{
xmlFile = service;
Debug.Trace("Calling: "+xmlFile);
var xml = new ActiveXObject("MSXML2.DOMDocument.4.0");
xml.validateOnParse = false;
xml.async = false;
xml.load(xmlFile);
var resp = xml.documentElement;
return resp;
}
The object returned represents the root tag in the document. To get its first child tag
code:
var root = NewRequest("http://...");
var child = root.childNodes.item(0);
Debug.Trace("First child's text: " + child.text);
For more information on DOMDocument object...
http://msdn.microsoft.com/library/default.asp?url...lrfdomdocument.asp
hope it helps