hi,
I am creating xml file like this
cn = new OleDbConnection (CONN_STRING);
da = new OleDbDataAdapte r("select satisfactoryite mcount as ConsumerRating from inspection where Inspectorperiod Id=4147 Order by CreatedDateTime ASC", cn);
DataSet Inspection = new DataSet("Inspec tionSummaryRepo rt");
da.Fill(Inspect ion);
Inspection.Writ eXml("C:\\aa.xm l");
it working fine and i am getting the output like this
<?xml version="1.0" standalone="yes "?>
<InspectionSumm aryReport>
<Table>
<ConsumerRating >0</ConsumerRating>
</Table>
</InspectionSumma ryReport>
but i want out put like
<?xml version="1.0" standalone="yes "?>
<InspectionSumm aryReport>
<ConsumerRating >0</ConsumerRating>
</InspectionSumma ryReport>
That is i dont want table tag.Any one help me urgent plz.
Regards,
Koti.
I am creating xml file like this
cn = new OleDbConnection (CONN_STRING);
da = new OleDbDataAdapte r("select satisfactoryite mcount as ConsumerRating from inspection where Inspectorperiod Id=4147 Order by CreatedDateTime ASC", cn);
DataSet Inspection = new DataSet("Inspec tionSummaryRepo rt");
da.Fill(Inspect ion);
Inspection.Writ eXml("C:\\aa.xm l");
it working fine and i am getting the output like this
<?xml version="1.0" standalone="yes "?>
<InspectionSumm aryReport>
<Table>
<ConsumerRating >0</ConsumerRating>
</Table>
</InspectionSumma ryReport>
but i want out put like
<?xml version="1.0" standalone="yes "?>
<InspectionSumm aryReport>
<ConsumerRating >0</ConsumerRating>
</InspectionSumma ryReport>
That is i dont want table tag.Any one help me urgent plz.
Regards,
Koti.
Comment