Dan... Look at this code:
code:
var xml = new ActiveXObject("Microsoft.XMLDOM");
var file = MsgPlus.ScriptFilesPath + '\\test.xml';
xml.load(file);
var Profile_nodes = xml.getElementsByTagName("Profile");
var numProfiles = Profile_nodes.length;
for(i = 0; i < numProfiles; i++){
var attributes = Profile_nodes.item( i ).attributes;
var thisUser = false;
for(x = 0; x < attributes.length; x++){
if(attributes[x].name == "Email" && attributes[x].value == Messenger.MyEmail){
Debug.Trace("Fant online user!");
thisUser = true;
}
}
if(thisUser){
var spessUsers = Profile_nodes.item( i ).childNodes;
for(x = 0; x < spessUsers.length; x++){
var att = spessUsers[x].attributes;
for(y = 0; y < att.length; y++){
Debug.Trace("--" + att[y].name + " = " + att[y].value);
}
}
}
}