This article shows how to write XML to a file by using the XmlTextWriter class. XmlTextWriter provides a fast, forward-only way of generating XML and helps you to build XML documents. XmlTextWriter provides stream write rather than using an object model, such as the XML Document Object Model (DOM),
