[#BloombergLP-balxml-Decoder-2constructor-0e1]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/Decoder.adoc[Decoder]::Decoder
:relfileprefix: ../../../
:mrdocs:

Construct a decoder using the specified `options`, `reader`, `errInfo`, and `basicAllocator`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
Decoder(
    xref:BloombergLP/balxml/DecoderOptions.adoc[DecoderOptions] const* options,
    xref:BloombergLP/balxml/Reader.adoc[Reader]* reader,
    xref:BloombergLP/balxml/ErrorInfo.adoc[ErrorInfo]* errInfo,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *options*
| decoder options&semi; held, not owned
| *reader*
| XML reader used for parsing&semi; held, not owned
| *errInfo*
| error&hyphen;info structure&semi; held, not owned
| *basicAllocator*
| allocator used to supply memory
|===


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