Add an XML declaration header with the optionally specified encoding.
Synopsis
Declared in <balxml_formatter.h>
void
addHeader(std::string_view const& encoding = "UTF‐8");
Description
Version is always "1.0". The behavior is undefined unless addHeader is the first manipulator (with the exception of rawOutputStream) after construction or reset.
Parameters
Name |
Description |
encoding |
character encoding named in the XML declaration |
Created with MrDocs