[#BloombergLP-balxml-Encoder_SequenceFirstPass-addAttributeImp-0e] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/Encoder_SequenceFirstPass.adoc[Encoder_SequenceFirstPass]::addAttributeImp :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 addAttributeImp( TYPE const& object, std::string_view const& name, int formattingMode, xref:BloombergLP/bdlat_TypeCategory/NullableValue.adoc[bdlat_TypeCategory::NullableValue] category); ---- == Description Note that the last argument is used for overloading purposes only. == Return Value 0 on success, and a non‐zero value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *object* | nullable attribute value | *name* | attribute name | *formattingMode* | formatting mode for the value | *category* | nullable‐value type‐category tag |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#