How to? Create XML files


Scott Mintz
May 20, 2008
Solon, OH, USA
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:
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.xml");