Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CreateXmlWriterOutputWithEncodingName

 

Creates an instance of IXmlWriter with the specified parameters.

  
HRESULT CreateXmlWriterOutputWithEncodingName (ISequentialStream * pStream, IMalloc * pMalloc, const WCHAR * pwszEncodingName, IXmlWriterOutput ** ppOutput);  

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

pMalloc
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.

pwszEncodingName
Specifies the encoding that the writer will use by providing the name of the encoding.

ppOutput
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

IXmlReader Functions
IXmlWriterOutput

Show:
© 2017 Microsoft