O'Reilly logo

Microsoft® .NET Compact Framework Kick Start by Ronnie Yates, Erik Rubin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with the XmlTextWriter

The XmlTextWriter provides a forward-only, read-only, noncached way of generating XML streams. The XmlTextWriter helps you create well-formed XML documents that conform to the W3C XML 1.0 recommendation and the namespaces in XML recommendation. The XmlTextWriter holds very little in memory other than the text to write to the file. It does, however, keep a stack of objects that represent the tags that have been written to the XML stream. The objects on the stack are used to resolve namespace prefixes and to close elements and attributes automatically, as well as to help ensure well-formedness of the document.

What Is Not Supported?

Just like with the XmlTextReader, document type nodes are not supported by the .NET ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required