NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Writing XML

The following classes may be used to write XML data.

XmlWriter and XmlTextWriter

The abstract XmlWriter class (System.NewXml.XmlWriter) defines methods to output XML documents conforming to the W3C XML 1.0 and Namespaces specifications. These methods merge text specified by the user with standard text appropriate for headers and element types, as well as determining encoding (such as UTF-8), and so on.

The XmlTextWriter class (System.NewXml.XmlTextWriter) extends XmlWriter. The XmlTextWriter class defines methods that write XML data in a forward-only manner to streams, files, and TextWriter objects.

XmlTextWriter has methods and properties to: