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

Advanced JScript - XML
Author: Message:
Zero
Junior Member
**

Avatar

Posts: 29
– / Male / Flag
Joined: Aug 2008
O.P. Advanced JScript - XML
Hi folks,

I've been trying to use JScript from some of my MPL functions to read/write XML files but I'm just having no luck whatsoever. Does anyone know how to do this? Can you provide some examples?
10-23-2008 04:49 PM
Profile E-Mail PM Web Find Quote Report
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
37 / Male / Flag
Joined: Jul 2007
RE: Advanced JScript - XML
You can have a look at the attached code library by -dt-, implementing an easytouse translation system. It contains XML reading and writing.

.zip File Attachment: helper_lc.js.zip (2.49 KB)
This file has been downloaded 169 time(s).
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
10-23-2008 04:55 PM
Profile E-Mail PM Web Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: Advanced JScript - XML
The best and easiest way is to make use of the XML DOM (XML Document Object Model) ActiveX object.

Basically, you start with:
code:
var xmldom = new ActiveXObject("Microsoft.XMLDOM");
and then you use anything you like provided by this object. You can load, create, save, modify, browse,... Look around, eventually try to find something about it on Google if you really don't know. There is really nothing you can't do with XML files when using the XML DOM. :P (Okay, maybe there is, but that'd have to be a very complex/rare thing you'd want to do.)

Some good references about the XML DOM:
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

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


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