public string GetXmlNodeValue(string strXml,string strNodeName,string strValueName)
{
try
{
System.Xml.XmlDocument xmlDoc = new System.Xml.XmlDocument();
xmlDoc.LoadXml(strXml);
System.Xml.XmlNode xNode = xmlDoc.SelectSingleNode("//" + strNodeName + "");
string strValue = xNode.Attributes[strValueName].Value;
return strValue;
}
catch (Exception ex)
{
return ex.Message;
}
}