What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » HELP - Selecting XML nodes...

HELP - Selecting XML nodes...
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: HELP - Selecting XML nodes...
The type mismatch is because you're trying to send an Element object as parameter to Debug.Trace, and the scripting engine doesn't know how to convert that object to a string. (It would work if the object had a toString() method defined, but it doesn't.)

To read the content of an Element, you use the text property. In your case, that would be as simple as:
js code:
Debug.Trace(ControlCaption.text);

And here's a nice reference of the XML DOM at DevGuru or at MSDN. So next time you're puzzled on something, go have a look there. They're both very complete and comprehensive, both for the newbie scripter as the experienced developer. :)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
11-01-2009 09:06 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
HELP - Selecting XML nodes... - by whiz on 11-01-2009 at 03:27 PM
RE: HELP - Selecting XML nodes... - by Matti on 11-01-2009 at 09:06 PM
RE: HELP - Selecting XML nodes... - by whiz on 11-02-2009 at 01:33 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