using System;
using System.Xml;
using System.Collections.Generic;
using System.Text;
class Program
{
static void Main(string[] args)
{
XmlDocument docItems = new XmlDocument();
docItems.Load("items.xml");
XmlNodeList allItems = docItems.SelectNodes("/items/item");
Console.WriteLine("Found {0} items", allItems.Count);
}
}
|