using System.ComponentModel;
public static void Main()
var reader = ChoXmlReader<EmployeeRec>.LoadText(xml);
while ((rec = reader.Read()) != null)
Console.WriteLine(rec.Id);
Console.WriteLine(rec.Name);
static string xml = @"<Employees>
public partial class EmployeeRec
[ChoXmlNodeRecordField(XPath = "//@Id")]
public int Id { get; set; }
[ChoXmlNodeRecordField(XPath = "//Name")]
public string Name { get; set; }