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