I have XML String:
<
try this:
string xml = " "; xml = "" + xml + ""; XmlDocument doc = new XmlDocument(); doc.LoadXml(xml); foreach (XmlNode node in doc.GetElementsByTagName("FieldRef")) Console.WriteLine(node.Attributes["Name"].Value);