MSXML Object Reuse
I am doing a number of XSLT transforms inside a class in some legacy code (ASP/VBScript). For each one, I'm doing the following:
Set oXSL = CreateObject("MSXML2.FreeThreadedDOMDocument.4.0")
because if I don't re-initialize the object each time, I get an error of "msxml4.dll (0x80070005) Attempt to modify a read-only node" as soon as I try to work with the oXSL object. I've seen reference to a reset() method in some JavaScript examples, but it does not appear to work for amy XSL object. Is there another method or approach that would re-init the object without forcing the server to recreate it?
I have a similar issue with the template processor; is there a reset for that?
|