[#BloombergLP-balxml-Encoder_Context-addAttribute-06] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/Encoder_Context.adoc[Encoder_Context]::addAttribute :relfileprefix: ../../../ :mrdocs: Add an attribute with the specified `name` and `value`, using the specified `formattingMode`. == Synopsis Declared in `<balxml_encoder.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class NAME_TYPE, class VALUE_TYPE> void addAttribute( NAME_TYPE const& name, VALUE_TYPE const& value, int formattingMode); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#