I generated a xml file for a data in SSIS using script task (VB script), but the version tag line is missing in the xml file. Can you please help me out.
The VB code i used in script task is below
Public Sub Main()
'
Dim sw As New IO.StreamWriter(Dts.Variables("User::FilePath").Value.ToString() + Dts.Variables("User::FileName").Value.ToString() + "_1.XML")
sw.Write(Dts.Variables("User::Content").Value.ToString())
sw.Dispose()
'
Dts.TaskResult = ScriptResults.Success
End Sub
Thanks in advance