XmlTextWriter()
Contents
[
Hide
]XmlTextWriter::XmlTextWriter(const SharedPtr<IO::Stream>&, const SharedPtr<Text::Encoding>&) constructor
Creates an instance of the XmlTextWriter class using the specified stream and encoding.
System::Xml::XmlTextWriter::XmlTextWriter(const SharedPtr<IO::Stream> &w, const SharedPtr<Text::Encoding> &encoding)
Arguments
Parameter | Type | Description |
---|---|---|
w | const SharedPtr<IO::Stream>& | The stream to which you want to write. |
encoding | const SharedPtr<Text::Encoding>& | The encoding to generate. If encoding is nullptr it writes out the stream as UTF-8 and omits the encoding attribute from the ProcessingInstruction. |
XmlTextWriter::XmlTextWriter(const String&, const SharedPtr<Text::Encoding>&) constructor
Creates an instance of the XmlTextWriter class using the specified file.
System::Xml::XmlTextWriter::XmlTextWriter(const String &filename, const SharedPtr<Text::Encoding> &encoding)
Arguments
Parameter | Type | Description |
---|---|---|
filename | const String& | The filename to write to. If the file exists, it truncates it and overwrites it with the new content. |
encoding | const SharedPtr<Text::Encoding>& | The encoding to generate. If encoding is nullptr it writes the file out as UTF-8 and omits the encoding attribute from the ProcessingInstruction. |
XmlTextWriter::XmlTextWriter(const SharedPtr<IO::TextWriter>&) constructor
Creates an instance of the XmlTextWriter class using the specified TextWriter.
System::Xml::XmlTextWriter::XmlTextWriter(const SharedPtr<IO::TextWriter> &w)
Arguments
Parameter | Type | Description |
---|---|---|
w | const SharedPtr<IO::TextWriter>& | The TextWriter to write to. It is assumed that the TextWriter is already set to the correct encoding. |
See Also
- Typedef SharedPtr
- Class Stream
- Class Encoding
- Class XmlTextWriter
- Class String
- Class TextWriter
- Namespace System::Xml
- Library Aspose.Slides