Windows Dev Center

Expand Minimize


Creates an instance of IXmlWriter with the specified parameters.

HRESULT CreateXmlWriterOutputWithEncodingCodePage (ISequentialStream * pStream, IMalloc * pMalloc, UINT nEncodingCodePage, IXmlWriterOutput ** ppOutput);


A pointer to the output stream for the writer to write data to.


A pointer to a user-provided implementation of the IMalloc interface. The writer will use this for all memory allocation. If this parameter is NULL, the writer will use its own implementation.


Specifies the encoding to use by providing the encoding page number of the encoding.


The new IXmlWriterOutput object.

Returns S_OK if no error is generated.

After creating the writer, the output stream for the writer can be changed by using the SetOutput method of the writer.

Header: XmlLite.h

Library: XmlLite.lib

© 2015 Microsoft