public List<XmlElement> GetNodeList()
{
list = new List<XmlElement>();
XmlNode nodeFirst= document.SelectSingleNode("Ele\NodeFirst"));
{
list = new List<XmlElement>();
XmlNode nodeFirst= document.SelectSingleNode("Ele\NodeFirst"));
XmlNode nodeSecond= document.SelectSingleNode("Ele\NodeSecond"));
list.Add(nodeFirst);
list.Add(nodeTwo);
return list;
}
return list;
}
List<XmlElement> Newlist = GetNodeList();
foreach (XmlElement item in Newlist )
{
Console.WriteLine("\t{0}\t{1}\t{2}",item.value
}
NewList.Remove(nodeTwo);