void FinishReadContentAsType() {
Debug.Assert( state == State.Interactive ||
state == State.PopNamespaceScope ||
state == State.ClearNsAttributes );
switch ( NodeType ) {
case XmlNodeType.Element:
// new element we moved to - process namespaces
ProcessNamespaces();
break;
case XmlNodeType.EndElement:
// end element we've stayed on or have been moved to
state = State.PopNamespaceScope;
break;
case XmlNodeType.Attribute:
// stayed on attribute, do nothing
break;
}
}
}