[#BloombergLP-balxml-Formatter-2constructor-08] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/Formatter.adoc[Formatter]::Formatter :relfileprefix: ../../../ :mrdocs: Construct a formatter that writes XML to the specified `output` stream. == Synopsis Declared in `<balxml_formatter.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Formatter( std::ostream& output, int indentLevel = 0, int spacesPerLevel = 4, int wrapColumn = 80, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- == Description Optionally specify initial `indentLevel`, `spacesPerLevel`, and `wrapColumn` for formatting, and a `basicAllocator` used to supply memory. == Parameters [cols="1,4"] |=== | Name| Description | *output* | stream to which XML is written | *indentLevel* | initial indentation level | *spacesPerLevel* | spaces per indentation level | *wrapColumn* | column at which to wrap lines, or special value | *basicAllocator* | memory allocator; null uses the default |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#