I don't have the means to test this (let me know if it works:satisfied:
dim cmdXML as new SQLCommand ("xmlProc")
dim xmlInput as XMLReader = cmdXML.ExecuteXML()
dim xmlOutPut as new XMLTextWriter ("FileName", _
System.Text.Encoding.Ascii)
while xmlInput.Read()
xmlOutPut.WriteNode (xmlInput, true)
end while
xmlOutPut.Flush() ' This may not be necessary
Russel Loski, MCSD
Russel Loski, MCSE Business Intelligence, Data Platform