XmlDocument doc = new XmlDocument(); doc.LoadXml(upXml);//upXML is a string variable containing XML var fnode = doc.GetElementsByTagName("name")[0];//Getting specific node name(it is more than 1 so we are using 0th positioned node var fval = fnode.Attributes["ab"].Value;//accessing node's attribute ab
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)