Encog.Util.XMLUtil.GetElementValue C# (CSharp) Method

GetElementValue() public static method

Get the specified element's text value.
public static GetElementValue ( XmlElement e ) : String
e System.Xml.XmlElement The element.
return String
        public static String GetElementValue(XmlElement e)
        {
            for (XmlNode child = e.FirstChild; child != null; child = child.NextSibling)
            {
                if (!(child is XmlText))
                {
                    continue;
                }
                return child.Value;
            }
            return null;
        }