public virtual string ReadElementContentAsString (string localName, string namespaceURI)
{
bool isEmpty = IsEmptyElement;
// unlike ReadStartElement() it rejects non-content nodes (this check is done before MoveToContent())
if (NodeType != XmlNodeType.Element)
throw new InvalidOperationException (String.Format ("'{0}' is an element node.", NodeType));
ReadStartElement (localName, namespaceURI);
if (isEmpty)
return String.Empty;
string s = ReadContentString (false);
ReadEndElement ();
return s;
}