public void EndTree() {
Debug.Assert(this.xstate == XmlState.EnumAttrs || this.xstate == XmlState.WithinContent, "EndTree cannot be called in the " + this.xstate + " state.");
this.seqwrt.EndTree();
this.xstate = XmlState.WithinSequence;
Writer = null;
}