public XmlWriterInjector(XmlWriter implementation) { this.originalXmlWriter = implementation; this.stringWriterInstance = new StringWriter(); this.injectorXmlTextWriter = new XmlTextWriter(this.stringWriterInstance); this.injectorXmlTextWriter.Formatting = Formatting.Indented; }