quote:
Originally posted by roflmao456
easy. just simply use the XMLHTTP object
code:
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open("GET","http://url.com/xml.xml",false);
xmlhttp.send(null);
var xml = xmlhttp.responseXML;
var Peter = xml.selectNodes("/Family/Member/Age/text()");
/*
either
var Peter = xml.selectNodes("/Family/Member/Age/text()");
or
var Peter = xml.selectNodes("/Family/Member/Age/text()")[0];
.. haven't used this function much
*/
Hmm this seems to look like it should work, however when I try to return the result I just get 4 squares as a string
EDIT:
I have figured it out by using a javascript example
I used the following:
code:
var x = xml.getElementsByTagName("Age")[0];
var Peter = x.childNodes[0];
msgbox(Peter.nodeValue);
Thankyou for your help