private void ProcessEndElement ()
{
if (depth == 0)
throw new XmlException ("Unexpected end of element while there is no element started.");
current = node = node_stack [--depth];
node.NodeType = XmlNodeType.EndElement;
context.NamespaceManager.PopScope ();
}