Using XmlDocument.OuterXml as a string
If you collected the Xml in an XmlDocument object, you can use XmlDocument.OuterXml as the string that you pass into SaveReportData.
Here is an example:
jobfileName = co.SaveReportData(xdTemplate.OuterXml)
         The XmlDocument.OuterXml code replaces this old scripting code.
Dim jobfilePath As String = co.FileLocation("WEBREPORTS", "XMLWORK") + "\" 
+ jobFileName xdTemplate.Save(jobfilePath) ' & "SessionXML\" + xmlname)