/ Published in: C#
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
public string GetNodeText(XmlDocument xmlDoc, string nodeName)
{
if (xmlDoc == null || string.IsNullOrEmpty(nodeName))
return string.Empty;
XmlNode node = xmlDoc.GetElementsByTagName(nodeName)[0];
if (node == null)
return string.Empty;
return node.InnerText;
}
Comments
 Subscribe to comments
                    Subscribe to comments
                
                