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