Iam using WriteXml () of the dataset to save the data that I have in the dataset into XML. When I save the dataset value in an XML file, the file format is similar to the code below.
I save the data set as follows: Order_Dataset.WriteXml(@"C:\Orders", XmlWriteMode.IgnoreSchema)
How can I write to prevent a dose of XMLNS address from appearing in my XML file? XmlWriteMode.IgnoreSchema should do the job, but it won’t
<Order_Dataset xmlns="http://tempuri.org/Order_Dataset.xsd">
<Order>
<OrderName>Coffe</OrderName>
<OrderID>1</OrderID>
<OrderDate>2011-02-20T14:11:21+01:00</OrderDate>
</Order>
source
share