Thanks but that wasn't right either, however it did help me to get it right.
The right code was:
code:
var nodeUser = xmlDoc.documentElement.selectSingleNode("//Statistics/User[@UserID="+Messenger.MyUserId+"]");
if(nodeUser){
Debug.Trace("User exists.");
} else {
Debug.Trace("User does not exist.");
}
This is the first half the problem, i can detect if it is a new user, now i need to make it right to the new user's tags/elements/thing (i don't really the know the correct term!).
I'll try it myself I think i have a good idea how to do it, but i may be back if i get very stuck.
Thanks
UPDATE: Second problem solved a few minutes after the first. Expect a new version soon!