Add an element of the specified name containing the specified value.

Synopsis

Declared in <balxml_formatter.h>

template<class TYPE>
void
addElementAndData(
    std::string_view const& name,
    TYPE const& value,
    int formattingMode = 0);

Description

This has the same effect as calling the following sequence: openElement(name); addData(value), closeElement(name);. Optionally specify the formattingMode.

Parameters

Name

Description

name

name of the element

value

data content of the element

formattingMode

mode used to format value

Created with MrDocs