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]
 
Back
Top