Loading

dataset XSD

When the

XmlWriteMode.WriteSchema

is used as parameter, the resulting XML file is substantially

larger. When few files are being generated for this data, this approach is acceptable,

 

but if many files are being created, it would be better to create a separate XSD file that can be

 

loaded before the data. You can use the

 

 

DataSet object’s WriteXmlSchema

method to extract

the XML schema definition to a separate file, as shown here.

vendorData.WriteXmlSchema(desktopFileName("VendorSchema.xsd"));

 

posted @ 2012-05-04 15:07  .net's  阅读(756)  评论(0)    收藏  举报