Some Problem In Using DataSet.ReadXML
Posted
by
Chong
on Stack Overflow
See other posts from Stack Overflow
or by Chong
Published on 2011-01-05T10:29:16Z
Indexed on
2011/01/05
10:53 UTC
Read the original article
Hit count: 224
hi friends,
i want to use dataset.readxml for retrieve some data from xml file.But,my xml format is not well format,one part is for dataset and another part for other things.so,how i retrieve the dataset part.i am developing in c#.net 2008.xml file format is like below.
<Object type="Sample">
<Object type="Tool">
<Property name="Text">Prescription1</Property>
<Property name="Name">Prescription1</Property>
<Object type="TextBox">
<Property name="Text">Singapore</Property>
<Property name="Name">TextBox2</Property>
</Object>
<DataSet> //This Part
<TableOne>
<ItemID>001</ItemID>
<ItemName>Item001</ItemName>
<Price>100</Price>
</TableOne>
<TableOne>
<ItemID>002</ItemID>
<ItemName>Item002</ItemName>
<Price>200</Price>
</TableOne>
</DataSet>
</Object>
regards
Chong
© Stack Overflow or respective owner