use System.Xml namespace to avoid a long type qualification, i.e. ....
using System.Xml;
Then try something like this.
XmlNodeList nl = xd.SelectNodes("config"); XmlNode root = nl[0]; foreach (XmlNode xnode in root.ChildNodes) { string name = xnode.Name; string value = xnode.InnerText; string nv = name + "|" + value; Send(nv); }
I believe something is wrong with your method.
a) I do not think SelectNodes should accept the /config argument, but should accept the config .
b) After selecting the first (and only - XML ββfiles in .Net should have one and only one root root) root node, you need to iterate through the ChildNodes root.
source share