[#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`. Version is always "1.0". The behavior is undefined unless `addHeader` is the first manipulator (with the exception of `rawOutputStream`) after construction or `reset`. == Synopsis Declared in `<balxml_formatter.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void addHeader(std::string_view const& encoding = "UTF‐8"); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#