public override void EndTree() { // Add newly constructed document to sequence this.writer.Close(); this.seqTyped.Add(this.doc.CreateNavigator()); }