using System;
using System.Xml;
using System.Collections.Generic;
using System.Text;
class Program
{
staticvoid Main(string[] args)
{
XmlDocument docItems = new XmlDocument();
docItems.Load("items.xml");
XmlNodeList heavyAttribs = docItems.SelectNodes("/items/item/attribute[@value > 10 and @name='weight']");
foreach (XmlNode heavyAttrib in heavyAttribs)
{
Console.WriteLine(heavyAttrib.ParentNode.Attributes["name"].Value);
}
}
}