Write XML Using the XmlTextWriterÂ
This section discusses using the XmlTextWriter class to write XML data.
Note
In the Microsoft .NET Framework version 2.0, the recommended practice is to create XmlWriter instances using the Create method and the XmlWriterSettings class. This allows you to take full advantage of all the new features introduced in this release. For more information, see Creating XML Writers.
In This Section
- Well-Formed XML Creation with the XmlTextWriter
Describes features designed to help users create well-formed XML data.
- XML Output Formatting with XmlTextWriter
Describes settings on the XmlTextWriter class that determines how the output is formatted.
- Namespace Features within the XmlTextWriter
Discusses namespace support on the XmlTextWriter class.
- Special Character Conversion when Writing XML Content
Discusses using the WriteRaw method.
Related Sections
- Writing XML with the XmlWriter
Describes how the XmlWriter class provides a non-cached, forward only way of generating XML streams and helps the user build XML documents.