How to? Create XML files

samintz

Scott Mintz
May 20, 2008
1,271
11
Solon, OH, USA
#1
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:
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");