What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » XMLDOM

XMLDOM
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
RE: XMLDOM
JScript code:
var node = xml.selectNodes("game[@name='FIFA06']/title");

This would assume that the "game" node is at the root of your document, but it isn't. There are a few ways to do this in the correct way:
JScript code:
var node = xml.selectNodes("gameslist/game[@name='FIFA06']/title");
or
var node = xml.selectNodes("//game[@name='FIFA06']/title");
or
var node = xml.selectNodes("/*/game[@name='FIFA06']/title");

Also, because I think that you don't want two game nodes to have the same name attribute, you can simply avoid using selectNodes and use selectSingleNode instead:
JScript code:
var node = xml.selectSingleNode("gameslist/game[@name='FIFA06']/title");
var info = node.text;

Hopefully this works for you. :)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
10-25-2008 09:08 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
XMLDOM - by ArkaneArkade on 10-25-2008 at 05:32 AM
RE: XMLDOM - by Matti on 10-25-2008 at 09:08 AM
RE: XMLDOM - by ArkaneArkade on 10-25-2008 at 03:52 PM
RE: XMLDOM - by Matti on 10-25-2008 at 06:07 PM
RE: XMLDOM - by ArkaneArkade on 10-26-2008 at 12:06 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On