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 |
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 |
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 |
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. |