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.
This writer implements XmlOutputMethod.AutoDetect. If the first element is "html", then output will be directed to an Html writer. Otherwise, output will be directed to an Xml writer.