protected string GetTextNodeText(XmlNode node) { string myValue = GetXmlNodeValue(node); if (myValue == null) throw new Exception("Cannot get text node's value."); return myValue; }