Shoutbox

Advanced JScript - XML - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Advanced JScript - XML (/showthread.php?tid=86833)

Advanced JScript - XML by Zero on 10-23-2008 at 04:49 PM

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?


RE: Advanced JScript - XML by mynetx on 10-23-2008 at 04:55 PM

You can have a look at the attached code library by -dt-, implementing an easytouse translation system. It contains XML reading and writing.


RE: Advanced JScript - XML by Matti on 10-23-2008 at 04:59 PM

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: