04-10-2012, 03:57 PM
Maybe this would help:
(the xml file is the results.xml. the xsl file is the PShort.xsl in the Run Results Viewer folder)
(the xml file is the results.xml. the xsl file is the PShort.xsl in the Run Results Viewer folder)
Code:
Set fso = CreateObject("Scripting.FileSystemObject")
Set xml = CreateObject ("Microsoft.XMLDOM")
xml.async = false
xml.load(xmlfile)
Set xsl = CreateObject("Microsoft.XMLDOM")
xsl.async = false
xsl.load(xslFile)
S = xml.transformNode(xsl.documentElement)
Set CreateFile = fso.CreateTextFile(htmlfile)
CreateFile.WriteLine(S)
CreateFile.Close