I need to create an order xml. Somewhere on the serve i have a base xml file which i would like to load, then change some values and store that xml as private data in the job.
First i tried to load the xml via XMLHttpRequest (which didn't work... obviously

Now i have xmlDoc = new Document(baseXmlPath);
but every time switch tries to load the xml is says "Invalid XML Document: C:/path/to/doc.xml" (tried all sort of slashes).
Now the question is how can do this "xmlDoc.getElementsByTagName("orderrefid")[0].childNodes[0].nodeValue = orderrefid;" in Switch?
Thanks in advance
