[#BloombergLP-balxml-Encoder-2constructor-08]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/Encoder.adoc[Encoder]::Encoder
:relfileprefix: ../../../
:mrdocs:

Create an encoder using the specified `options`&period;

== Synopsis

Declared in `&lt;balxml&lowbar;encoder&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
Encoder(
    xref:BloombergLP/balxml/EncoderOptions.adoc[EncoderOptions] const* options,
    std::ostream* errorStream = 0,
    std::ostream* warningStream = 0,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

== Description

Errors and warnings will be rendered to the optionally specified `errorStream` and `warningStream` respectively&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *options*
| encoding options&semi; held, not owned
| *errorStream*
| optional stream for error messages
| *warningStream*
| optional stream for warning messages
| *basicAllocator*
| memory allocator&semi; null uses the default
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
