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

Construct a decoder object using the specified `options` and the specified `reader` to perform the XML&hyphen;level parsing&period; If the (optionally) specified `errorInfo` is non&hyphen;null, it is used to store information about most serious error encountered during parsing&period; During parsing, error and warning messages will be written to the (optionally) specified `errorStream` and `warningStream` respectively&period; The behavior is undefined unless `options` and `reader` are both non&hyphen;zero&period; The behavior becomes undefined if the objects pointed to by any of the arguments is destroyed before this object has completed parsing&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 = 0,
    std::ostream* errorStream = 0,
    std::ostream* warningStream = 0,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----


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