XElement root = XElement.Load(@"F:\l.xml");
IEnumerable<XElement> els = root.Element("Category").Elements();
foreach (XElement el in els)
{
listView1.Items.Add(el.Value);
}
转载于:https://www.cnblogs.com/smthts/archive/2012/07/25/2607776.html