Home All Groups Group Topic Archive Search About

How to control root node name for the DataTable.WriteXML method

Author
18 Nov 2005 2:31 PM
Yitzhak
I am trying to leverage ADO.NET 2.0 DataTable WriteXML method and serialize
datatable as an XML file..

dataTable.WriteXml(xmlFile)

Unfortunately, root node of the output file is always DocumentElement. Is
there way to control the name of the root node for the XML output?

AddThis Social Bookmark Button