using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
class Program
{
static void Main(string[] args)
{
DataTable dt = new DataTable("Employees");
dt.ReadXml("Employees.xml");
DataTableReader dtr = dt.CreateDataReader();
while (dtr.Read())
{
Console.WriteLine(dtr["EmployeeID"]);
Console.WriteLine(dtr["FirstName"]);
Console.WriteLine(dtr["LastName"]);
}
}
}
|