How can I transform the following XML into a List or String[]:
1
2<
This sample will work with the .NET framework 3.5:
System.Xml.Linq.XElement element = System.Xml.Linq.XElement.Parse(" 1 2 ");
System.Collections.Generic.List ids = new System.Collections.Generic.List();
foreach (System.Xml.Linq.XElement childElement in element.Descendants("id"))
{
ids.Add(childElement.Value);
}