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

XMLDOM
Author: Message:
ArkaneArkade
Full Member
***

Avatar
The One and Only

Posts: 193
Reputation: 5
38 / Male / Flag
Joined: Mar 2007
O.P. XMLDOM
Hey folks,
I'm trying to sort a script out, to read data from an XML file (Just read... don't think writing is necessary... at least not yet), but I just keep running into problems with it.
I've searched all over the forums, and read the scripting threads which mention XMLDOM, and then tried to frankenstein each of them to work for me, but to no avail.

The error I'm getting is Error: Object required (code: -2146827864).       File: XML.js. Line: 5.

My code is this
JScript code:
var xml = new ActiveXObject("Microsoft.XMLDOM");
xml.load(MsgPlus.ScriptFilesPath + '\\gameinfo.xml');
 
var node = xml.selectNodes("game[@name='FIFA06']/title");
var info = node[0].text;
Debug.Trace(info);


And my xml file is
XML code:
<?xml version="1.0">
<gameslist>
    <game name="FIFA06">
        <title>Road to FIFA World Cup</title>
        <psm>Playing soccer</psm>
    </game>
    <game name="PD">
        <title>Perfect Dark Zero</title>
        <psm>Killing people</psm>
    </game>
</gameslist>

Obviously I intend to add a LOT more to the xml, but thats all I'm using just now.  I have also tried using node.text whcih doesnt give an error, but also gives no text, perhaps just a space.
Can anyone see what I've done wrong, or give me any pointers>
Any help is appreciated
Leroux
[Image: adsig.jpg]
10-25-2008 05:32 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