[#BloombergLP-balxml-Encoder_Context-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/Encoder_Context.adoc[Encoder&lowbar;Context]::Encoder&lowbar;Context
:relfileprefix: ../../../
:mrdocs:

Create a context bound to the specified `formatter` and `encoder`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
Encoder&lowbar;Context(
    xref:BloombergLP/balxml/Formatter.adoc[Formatter]* formatter,
    xref:BloombergLP/balxml/Encoder.adoc[Encoder]* encoder);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *formatter*
| XML formatter used for output
| *encoder*
| encoder that owns logging and options state
|===


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