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

Construct a formatter that writes to the specified `output` stream using the specified `encoderOptions` and formatting parameters&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
Formatter(
    std::ostream& output,
    xref:BloombergLP/balxml/EncoderOptions.adoc[EncoderOptions] const& encoderOptions,
    int indentLevel = 0,
    int spacesPerLevel = 4,
    int wrapColumn = 80,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *output*
| stream to which XML is written
| *encoderOptions*
| options controlling XML encoding
| *indentLevel*
| initial indentation level
| *spacesPerLevel*
| spaces per indentation level
| *wrapColumn*
| column at which to wrap lines, or special value
| *basicAllocator*
| memory allocator&semi; null uses the default
|===


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