An MXXMLWriter
object provides an efficient and flexible way to handle the output produced by the latest version of the Simple API for XML (SAX2) events. For example, an MXXMLWriter
object:
SAXXMLReader
, MXXMLWriter
accumulates data passed by events thrown by the reader and stores the data in an output string. Also, MXXMLWriter
can automatically handle the details of inserting special characters, such as the "<" character at the beginning of an element.omitXMLDeclaration
, indent
, and encoding
, that apply to the document output.IVBSAXContentHandler
, IVBSAXDTDHandler
, IVBSAXDeclHandler
, IVBSAXErrorHandler
, and IVBSAXLexicalHandler
interfaces.IMXWriter
interface, which is a complementary application programming interface (API) to the latest version of the Simple API for XML (SAX2) implementation of Microsoft® XML Core Services (MSXML) 5.0 for Microsoft Office.MSXML provides two CoClasses that implement IMXWriter
: MXXMLWriter
, which generates XML or DOM output and MXHTMLWriter
, which generates HTML output.
To help you understand how you can incorporate MXXMLWriter
into your applications, this section provides the following topics:
Although this tutorial covers the code included in the sample application, it is recommended that you download the sample MXXMLWriter application from the MSDN Code Center.
Sample MXXMLWriter application