This enumeration is used to specify the type of XML output generated by the DataSet.WriteXml( ) method. IgnoreSchema writes the data only. In this case, you can use the DataSet.WriteXmlSchema( ) method to create a separate schema file for the DataSet. If you choose WriteSchema, an inline XSD schema is written at the beginning of the file, followed by the XML data. Finally, you can use DiffGram to write the data indicating which rows have been added, deleted, and modified (along with the original value for changed rows). When a DataSet is serialized as part of a SOAP message sent to or from a web service, the DiffGram format is used automatically, and the DataSet schema is prepended to the data.

public enum XmlWriteMode {

   WriteSchema = 0,

   IgnoreSchema = 1,

   DiffGram = 2



System.Object System.ValueType System.Enum(System.IComparable, System.IFormattable, System.IConvertible) XmlWriteMode

Passed To

DataSet.WriteXml( )

Get ADO.NET in a Nutshell now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.