using System; using System.Xml; public class Test { public static void Main() { var xml = @" "; var xmldoc = new XmlDocument(); xmldoc.LoadXml(xml); XmlNodeList nodes = xmldoc.GetElementsByTagName("Item"); foreach(XmlNode node in nodes) { Console.WriteLine("Node={0} type id={1}", node.Name, node.Attributes["id"].Value); foreach(XmlNode child in node.SelectNodes("property")) { Console.WriteLine(" Name={0} type attribute={1}", child.Name, child.Attributes["type"].Value); } } } }