G
Guest
Hi,
I am creating DataSet and many DataTables and populating value to those
tables and finally writing the values as XML.
I want to add attribute to my DataSet. How can I do this?
DataSet objDataSet = new DataSet("Test");
objDataSet.WriteXml(@"C:\Test.xml");
Output:
<?xml version="1.0" standalone="yes" ?>
<Test />
I want in the below given format:
<?xml version="1.0" standalone="yes" ?>
<Test Version="3.1" />
One more question: Is it possible to eliminate "<?xml version="1.0"
standalone="yes" ?> " when I use DataSet to write the XML file?
thanks
With Regards
Venkat
I am creating DataSet and many DataTables and populating value to those
tables and finally writing the values as XML.
I want to add attribute to my DataSet. How can I do this?
DataSet objDataSet = new DataSet("Test");
objDataSet.WriteXml(@"C:\Test.xml");
Output:
<?xml version="1.0" standalone="yes" ?>
<Test />
I want in the below given format:
<?xml version="1.0" standalone="yes" ?>
<Test Version="3.1" />
One more question: Is it possible to eliminate "<?xml version="1.0"
standalone="yes" ?> " when I use DataSet to write the XML file?
thanks
With Regards
Venkat