menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SpecialXmlWriter - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SpecialXmlWriter

    This class can be used to implement special affects while producing xml documents. At the moment it is only used for excluding the xml start line.

    Inheritance
    System.Object
    SpecialXmlWriter
    Namespace: Syncfusion.Olap.Common
    Assembly: Syncfusion.Olap.Base.dll
    Syntax
    public class SpecialXmlWriter : XmlTextWriter

    Constructors

    SpecialXmlWriter(Stream, Encoding, Boolean)

    Initializes a new instance of the SpecialXmlWriter class.

    Declaration
    public SpecialXmlWriter(Stream sw, Encoding encoding, bool includeStartDocument)
    Parameters
    Type Name Description
    System.IO.Stream sw

    The StreamWriter object.

    System.Text.Encoding encoding

    The encoding object.

    System.Boolean includeStartDocument

    if set to true [include start document].

    SpecialXmlWriter(TextWriter, Boolean)

    Initializes a new instance of the SpecialXmlWriter class.

    Declaration
    public SpecialXmlWriter(TextWriter tw, bool includeStartDocument)
    Parameters
    Type Name Description
    System.IO.TextWriter tw

    The TextWriter object.

    System.Boolean includeStartDocument

    if set to true [include start document].

    SpecialXmlWriter(String, Encoding, Boolean)

    Initializes a new instance of the SpecialXmlWriter class.

    Declaration
    public SpecialXmlWriter(string filePath, Encoding encoding, bool includeStartDocument)
    Parameters
    Type Name Description
    System.String filePath

    The file path.

    System.Text.Encoding encoding

    The encoding object.

    System.Boolean includeStartDocument

    if set to true [include start document].

    Methods

    WriteStartDocument()

    Writes the XML declaration with the version "1.0".

    Declaration
    public override void WriteStartDocument()
    Exceptions
    Type Condition
    System.InvalidOperationException

    This is not the first write method called after the constructor.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved