Read xml file and import only one table from multiple tables from xml file in the dataset at a time.

Posted by Harikrishna on Stack Overflow See other posts from Stack Overflow or by Harikrishna
Published on 2010-04-15T04:38:31Z Indexed on 2010/04/15 4:43 UTC
Read the original article Hit count: 222

Filed under:
|
|
|
|

I want to store the data in the xml file and retrieve the data from that. I have defined more than table in that xml file.Now to read the tables I am using

 dataset ds = new dataset();
 ds.ReadXml(xmlfilepath);

Now this dataset contains all the tables those are in xml file when we read the xml file into dataset. But I want only one specified table at a time in a dataset by condition. Like there are PersonalInfo,OtherInfo,PropertiesInfo tables in the xml file. But I want only OtherInfo table in dataset what I should do ?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET