A
Amit Patankar
Hi,
I have an XML file having following format:
<Table1>
<Row1> Value </Row1>
<Table2>
<Row2>Value</Row2>
</Table2>
</Table1>
I read this xml file and corresponding XSD file using dataset. But when I
read the above xml file and rewrite the same contents, using WriteXML, i
get an extra node at the top. So the new xml file looks like this:
<Root>
<Table1>
<Row1> Value </Row1>
<Table2>
<Row2>Value</Row2>
</Table2>
</Table1>
</Root>
So an extra <Root> tag, which I found corresponds to the schema ID is added,
which is unwanted. I guess this should be the problem with the dataset.
Could anyone suggest what I can do to avoid this extra node?
Thanks a lot.
Amit.
I have an XML file having following format:
<Table1>
<Row1> Value </Row1>
<Table2>
<Row2>Value</Row2>
</Table2>
</Table1>
I read this xml file and corresponding XSD file using dataset. But when I
read the above xml file and rewrite the same contents, using WriteXML, i
get an extra node at the top. So the new xml file looks like this:
<Root>
<Table1>
<Row1> Value </Row1>
<Table2>
<Row2>Value</Row2>
</Table2>
</Table1>
</Root>
So an extra <Root> tag, which I found corresponds to the schema ID is added,
which is unwanted. I guess this should be the problem with the dataset.
Could anyone suggest what I can do to avoid this extra node?
Thanks a lot.
Amit.