Parser.ParserBase.GetTextNodeText C# (CSharp) Method

GetTextNodeText() protected method

Returns the text stored in the text node.
protected GetTextNodeText ( XmlNode node ) : string
node System.Xml.XmlNode
return string
        protected string GetTextNodeText(XmlNode node)
        {
            string myValue = GetXmlNodeValue(node);
            if (myValue == null)
                throw new Exception("Cannot get text node's value.");

            return myValue;
        }