samintz
Scott Mintz
- May
- 1,590
- 27
Does anyone have a plugin to create an XML file? The built-in XML functions for reading work great. But I have a need to create a file.
I have a VBScript application that does the following and I'd like to be able to do it in TCC:
I have a VBScript application that does the following and I'd like to be able to do it in TCC:
Code:
var tests = CreateXml();
var parent = AppendNewParentElement(tests, tests, "Tests");
parent.setAttribute("Results", "UnitTestResults.xml");
parent.setAttribute("CurrentLevel", "Unit");
parent.setAttribute("ChildLevel", "Solution");
var test = AppendNewElement(tests, parent, "Test");
test.setAttribute("Results", testResultsPath);
test.setAttribute("Name", solutionName);
tests.save("Tests.xml");