Select one row from a xml file
From: Chris Darnell (csdarnellRE-MOVE_at_darnellc.com)
Date: 05/26/04
- Next message: Manu: "Speed in Ado.net"
- Previous message: Terry Olsen: "Need Help with SQL Server Authentication"
- In reply to: michael_hk: "Select one row from a xml file"
- Next in thread: michael_hk: "re:Select one row from a xml file"
- Messages sorted by: [ date ] [ thread ]
To: microsoft.public.dotnet.framework.adonet Date: Tue, 25 May 2004 23:22:05 -0500
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
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
[microsoft.public.dotnet.framework.adonet]
- Next message: Manu: "Speed in Ado.net"
- Previous message: Terry Olsen: "Need Help with SQL Server Authentication"
- In reply to: michael_hk: "Select one row from a xml file"
- Next in thread: michael_hk: "re:Select one row from a xml file"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|