In Brief

  • The XmlTextReader is a fast, forward-only, read-only XML parser.

  • The XmlTextWriter provides a forward-only, read-only, noncached way of generating XML streams.

  • The XmlTextReader or the XmlTextWriter must first be created and initialized before it can be used.

  • Part of this initialization includes setting the properties that will affect how it will handle its XML data.

  • The XmlTextReader provides several methods for reading all XML node types.

  • The XmlTextWriter provide methods for writing all XML node types.

  • After using the XmlTextReader and XmlTextWriter, it is important to close the objects so their resources will be freed.

Get Microsoft® .NET Compact Framework Kick Start now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.