private List<string> ExtractNodesFromXml(string xml)
{
List<string> nodes = new List<string>();
XmlDocument xDoc = new XmlDocument();
xDoc.LoadXml(xml);
foreach (XmlNode node in xDoc.SelectSingleNode("//NodePositions"))
{
string nodeId = node.Attributes["Node"].Value;
nodes.Add(nodeId);
}
return nodes;
}