[#BloombergLP-balxml-Formatter-addHeader]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/Formatter.adoc[Formatter]::addHeader
:relfileprefix: ../../../
:mrdocs:

Add XML header with optionally specified `encoding`&period; Version is always &quot;1&period;0&quot;&period; The behavior is undefined unless `addHeader` is the first manipulator (with the exception of `rawOutputStream`) after construction or `reset`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
addHeader(std::string&lowbar;view const& encoding = &quot;UTF&hyphen;8&quot;);
----


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