![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Bizarre run time error from DTS ActiveX Task Bizarre run time error from DTS ActiveX TaskTo: NULL Date: 4/1/2004 5:50:00 PM This code errors out, runtime error stating Object does not support the
property or method from the 2ND write(transform...). If I run this script
from the command line, it works fine. But from DTS, the error.
And ideas ?
================== ================= ============
Set xml = CreateObject("MSXML2.DOMDocument.4.0")
Set xsl = CreateObject("MSXML2.DOMDocument.4.0")
xml.async = false
xsl.async = false
xml.validateOnParse=False
xml.load(strSourceInvFile)
xsl.load(strINVXSLT)
'If xml.parseError.errorcode = <> 0
'set myErr = xml.parseError
'msgbox myErr.reason
set fso = CreateObject("Scripting.FileSystemObject")
set MyFile = fso.CreateTextFile(strINVTransformed, true)
MyFile.Write(xml.transformNode(xsl))
MyFile.Close
xml.load(strSourceSalesFile)
xsl.load(strSALESXSLT)
set MyFile = fso.CreateTextFile(strSalesTransformed, true)
MyFile.Write(xml.transformNode(xsl))
MyFile.Close()
set xml = nothing
set xsl = nothing
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||
|
