What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] Using XML DOM "childNodes" property...

[?] Using XML DOM "childNodes" property...
Author: Message:
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
O.P. [?] Using XML DOM "childNodes" property...
I'm trying to use Node.childNodes (as opposed to enumerating Node.selectNodes(), so that I can access comments in interfaces, as well as windows, controls and elements.

...except that I don't know how to loop through one.  :S
Javascript code:
XMLO = new ActiveXObject("Microsoft.XMLDom"); // defined globally
if (XMLO.load(MsgPlus.ScriptFilesPath + "\\File.xml")) // load a file
{
    var WindowEnum = new Enumerator(XMLO.selectNodes("//Interfaces/Window"));
    for (; !WindowEnum.atEnd(); WindowEnum.moveNext()) // loop through each window in the file
    {
        var WindowId = WindowNode.getAttribute("Id");
        var WindowXMLPath = "//Interfaces/Window[@Id=\"" + WindowId + "\"]/";
        // process window size, position etc.
        var ControlEnum = XMLO.selectSingleNode(WindowXMLPath + "Controls").childNodes;
         // error: object required (-2146827864)
    }
}


Following instructions here: http://www.devguru.com/technologies/xmldom/quickr...de_childNodes.html
07-25-2010 11:37 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[?] Using XML DOM "childNodes" property... - by whiz on 07-25-2010 at 11:37 AM
RE: [?] Using XML DOM "childNodes" property... - by foaly on 07-25-2010 at 11:44 AM
RE: [?] Using XML DOM "childNodes" property... - by whiz on 07-25-2010 at 12:11 PM
RE: [?] Using XML DOM "childNodes" property... - by Eljay on 07-25-2010 at 02:50 PM
RE: [?] Using XML DOM "childNodes" property... - by whiz on 07-25-2010 at 03:06 PM


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