public override XmlWriter AppendChild() { if (this.currentNode != null || this.nodeWrapper == null || this.nodeWrapper.node != null) { throw new InvalidOperationException(); } var config = this.nodeWrapper.config; var options = new ParseOptions(); var model = options.getModel(); var pc = config.makePipelineConfiguration(); var builder = model.makeBuilder(pc); var baseWriter = new DeferredNavigator.Writer(builder, this); // wrapping XdmWriter with XmlWellFormedWriter which implements LookupPrefix // required by XmlSerializer return(XmlWriter.Create(baseWriter)); }
public override XmlWriter AppendChild() { if (this.currentNode != null || this.nodeWrapper == null || this.nodeWrapper.node != null) { throw new InvalidOperationException(); } var config = this.nodeWrapper.config; var options = new ParseOptions(); var model = options.getModel(); var pc = config.makePipelineConfiguration(); var builder = model.makeBuilder(pc); var baseWriter = new DeferredNavigator.Writer(builder, this); // wrapping XdmWriter with XmlWellFormedWriter which implements LookupPrefix // required by XmlSerializer return XmlWriter.Create(baseWriter); }