The XmlWriter class writes XML data to a stream, file, TextReader, or string. It provides a means of creating well-formed XML data in a forward-only, write-only, non-cached manner. The XmlWriter class supports the W3C XML 1.0 and Namespaces in XML recommendations. This section discusses how to create an XmlWriter instance with a specified set of features, data conformance checking, writing typed data, and so on.
- Creating XML Writers
Discusses how to create writers using the XmlWriter..::.Create method.
- Data Conformance and the XmlWriter
Describes data conformance checks that can be set on the XmlWriter class.
- Namespace Handling in the XmlWriter
Discusses the namespace features on the XmlWriter class.
- Writing Typed Data
Discusses how to write typed data.
- Writing Attributes
Describes the methods available for writing attributes.
- Writing Elements
Describes the methods available for writing elements.
- Write XML Using the XmlTextWriter
Discusses how to use the XmlTextWriter class.
Note: |
|---|
In the Microsoft .NET Framework version 2.0, we recommend creating
XmlWriter objects using the Create method.
|
- XML Documents and Data
Provides an overview to a comprehensive and integrated set of classes that work with XML documents and data in the .NET Framework.