/// <summary> /// Constructor for the <c>Formatter</c> object. This creates /// an object that can be used to write XML in an indented format /// to the specified writer. The XML written will be well formed. /// </summary> /// <param name="result"> /// this is where the XML should be written to /// </param> /// <param name="format"> /// this is the format object to use /// </param> public Formatter(TextWriter result, Format format) { this.indenter = new Indenter(format); this.buffer = new OutputBuffer(); this.prolog = format.Prolog; this.result = result; }
/// <summary> /// Constructor for the <c>Formatter</c> object. This creates /// an object that can be used to write XML in an indented format /// to the specified writer. The XML written will be well formed. /// </summary> /// <param name="result"> /// this is where the XML should be written to /// </param> /// <param name="format"> /// this is the format object to use /// </param> public Formatter(TextWriter result, Format format){ this.indenter = new Indenter(format); this.buffer = new OutputBuffer(); this.prolog = format.Prolog; this.result = result; }