Select one row from a xml file

  • Thread starter Thread starter michael_hk
  • Start date Start date
M

michael_hk

Hi,

I have a xml file which is created by myDataSet.WriteXml(). myDataSet
contains one datatable which in turn contains several thousands
rows.

Now I want to select one row (that can be done by a simple select in
sql) from the xml file. Do I need to restore the dataset first from
the xml file? Or I can work on the xml file directly?

Thanks.

Michael
 
You can use the System.XML.XmlDocument object to load in the xml file. Then use the xmlDocument's SelectSingleNode() method to get the specific row into an xmlNode.

-----------------------------------------------------------------------------

Hi,

I have a xml file which is created by myDataSet.WriteXml(). myDataSet
contains one datatable which in turn contains several thousands
rows.

Now I want to select one row (that can be done by a simple select in
sql) from the xml file. Do I need to restore the dataset first from
the xml file? Or I can work on the xml file directly?

Thanks.

Michael





[microsoft.public.dotnet.framework.adonet]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top