public override void WriteEndAttribute() { if (this.xstate == XmlState.WithinNmsp) { WriteEndNamespace(); } else { WriteEndAttributeUnchecked(); if (this.depth == 0) EndTree(); } }