This writer wraps an XmlRawWriter and inserts additional lexical information into the resulting Xml 1.0 document: 1. CData sections 2. DocType declaration It also performs well-formed document checks if standalone="yes" and/or a doc-type-decl is output.