Add an element of the specified name containing the specified value.
Declared in <balxml_formatter.h>
template<class TYPE>
void
addElementAndData(
std::string_view const& name,
TYPE const& value,
int formattingMode = 0);
This has the same effect as calling the following sequence: openElement(name); addData(value), closeElement(name);. Optionally specify the formattingMode.
| Name | Description |
|---|---|
| name | name of the element |
| value | data content of the element |
| formattingMode | mode used to format value |