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

Reading a data file
Author: Message:
wiseguyxp
New Member
*


Posts: 8
Joined: Dec 2009
O.P. RE: Reading a data file
I am trying to do XML enumeration and have run into an error that I can't seem to fix.  When I try to shove "Blah" from the XML into the playerName variable, I keep getting "Error: Object required".  I have posted the relevant sections of code below.

Also, I'm not even sure if the script is loading the file correctly.  Is there a way that I can tell if it loaded?

XML:
code:
<root>
<player>
    <name>Blah</name>
</player>
</root>

JScript:
code:
function loadXML(fileName) {
// Create the XML object
var XML = new ActiveXObject ('MSXML.DOMDocument') ;
XML.async = false;
XML.load(fileName);

var playerName = XML.selectSingleNode('/player/name').nodeValue;
}
12-12-2009 07:16 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Reading a data file - by wiseguyxp on 12-11-2009 at 10:31 AM
RE: Reading a data file - by Ezra on 12-11-2009 at 11:46 AM
RE: Reading a data file - by wiseguyxp on 12-12-2009 at 07:16 AM
RE: Reading a data file - by matty on 12-12-2009 at 04:23 PM
RE: Reading a data file - by wiseguyxp on 12-12-2009 at 08:38 PM
RE: Reading a data file - by MeEtc on 12-12-2009 at 10:01 PM
RE: Reading a data file - by wiseguyxp on 12-13-2009 at 12:04 AM
RE: Reading a data file - by matty on 12-13-2009 at 02:11 AM
RE: Reading a data file - by wiseguyxp on 12-13-2009 at 05:02 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