string GetNodeValue(XmlNode n, string path) { XmlNode node = n.SelectSingleNode (path); if (node == null) { Console.WriteLine ("{0} not found", path); return null; } return node.InnerText; }