What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Help!] Writing to XML files

[Help!] Writing to XML files
Author: Message:
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
36 / Male / Flag
Joined: Mar 2004
RE: [Help!] Writing to XML files
err why not use the XML com object?

code:
var xml = new ActiveXObject("Microsoft.XMLDOM");
xml.load("filename of xml here");

//create the element to be added
var toAdd = xml.createElement("test");

//add a message to it
toAdd.appendChild(xml.createTextNode("testing this"));


//add it into our xml
xml.getElementsByTagName("Messages")[0].appendChild(toAdd);


//save our xml
xml.save("filename of xml here");

[Image: dt2.0v2.png]      Happy Birthday, WDZ
07-05-2006 11:56 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Help!] Writing to XML files - by rob_botch on 07-05-2006 at 11:25 AM
RE: [Help!] Writing to XML files - by -dt- on 07-05-2006 at 11:56 AM
RE: [Help!] Writing to XML files - by rob_botch on 07-05-2006 at 12:52 PM
RE: [Help!] Writing to XML files - by mathieumg on 07-05-2006 at 06:50 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