Just did a quick read of XPath and it seems quite simple, but I'll stick to the selectSingleNode for now.
I'm currently testing the script but I think that I'm failing to load the actual tasks.xml file (its located inside my script folder)
code:
var XML = new ActiveXObject('MSXML.DOMDocument');
XML.load(MsgPlus.ScriptFilesPath + '/tasks.xml');
Any clue on what's wrong?