Subject:msxml 6 and scripts Author:Steve Grise Date:28 May 2007 03:28 PM
I dug up an old example from this site for handling xml fragments of escape-outputted text.
I need to use msxml 6, and I get an error message "C# is not a scripting language". I tried to switch to Javascript but I can't seem to get the syntax right - get error messages like "can't find 'System' etc. Can someone throw me a bone in JScript?
Subject:msxml 6 and scripts Author:(Deleted User) Date:29 May 2007 03:43 AM
Hi Steve,
msxml 6 doesn't support C# (or VB.NET) as a scripting language; it supports JavaScript and VBScript, but in this case you should convert the code to use the JavaScript syntax...
Subject:msxml 6 and scripts Author:Steve Grise Date:29 May 2007 11:30 AM
ok, but I'm really stumped on how to write the javascript, and trolling through almost useful web search results is not helping much.
I try to change the first line to:
var rdr = new StringReader(strXml);
or
StringReader rdr = new StringReader(strXml)
or
System.IO.StringReader...
but none of these approaches work.
All I can find on the web and on this board are C# examples which are not helpful, and I can find anything useful for javascript syntax anywhere for msxml. I don't mind going off and learning how to do this, but I'm really stumped for an example.