XmlUtil.CreateXmlWriter Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateXmlWriter(TextWriter, Boolean) |
Creates an XmlWriter on top of the provided TextWriter as per the .Net Framework guidelines. |
CreateXmlWriter(String, Encoding, Boolean) |
Creates an XmlWriter which writes to the specified filename using the specified encoding. |
CreateXmlWriter(TextWriter, Boolean)
Creates an XmlWriter on top of the provided TextWriter as per the .Net Framework guidelines.
public static System.Xml.XmlWriter CreateXmlWriter (System.IO.TextWriter textWriter, bool indented);
static member CreateXmlWriter : System.IO.TextWriter * bool -> System.Xml.XmlWriter
Public Shared Function CreateXmlWriter (textWriter As TextWriter, indented As Boolean) As XmlWriter
Parameters
- textWriter
- TextWriter
TextWriter to write into
- indented
- Boolean
True to indent the output
Returns
An XmlWriter
Applies to
CreateXmlWriter(String, Encoding, Boolean)
Creates an XmlWriter which writes to the specified filename using the specified encoding.
public static System.Xml.XmlWriter CreateXmlWriter (string fileName, System.Text.Encoding encoding, bool indented);
static member CreateXmlWriter : string * System.Text.Encoding * bool -> System.Xml.XmlWriter
Public Shared Function CreateXmlWriter (fileName As String, encoding As Encoding, indented As Boolean) As XmlWriter
Parameters
- fileName
- String
File to write to
- encoding
- Encoding
Encoding to use
- indented
- Boolean
True to indent the output
Returns
An XmlWriter