[#BloombergLP-balxml-ElementAttribute-2constructor-0d] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/ElementAttribute.adoc[ElementAttribute]::ElementAttribute :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<balxml_elementattribute.h>` Construct a null attribute object: Set all string facets to zero, the namespace ID to `INT_MIN`, and flags to zero. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/balxml/ElementAttribute/2constructor-0b.adoc[ElementAttribute](); ---- [.small]#xref:BloombergLP/balxml/ElementAttribute/2constructor-0b.adoc[_» more..._]# Construct an attribute object with the specified, `prefixStack`, `qualifiedName`, and `value`, with optionally specified `prefix`, `localName`, `namespaceId`, `namespaceUri`, and `flags`. Except for `flags`, if any of the optional arguments are null (for pointers) or `INT_MIN` (for integer arguments), then the corresponding facet will computed from the other arguments on an as‐needed basis. If all of the optional arguments are given non‐null, non‐`INT_MIN` values, then `prefixStack` is unused and may be null. Arguments are permitted to be inconsistent with one another (e.g., `prefix` may not match the beginning of `qualifiedName`) and will produce an object for with facets that are inconsistent with one another. The constructed object will become invalid if any of the supplied pointers is invalidated during its lifetime (or before it is reset). An invalid object may be destroyed or reset, but any other access yields undefined behavior. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/balxml/ElementAttribute/2constructor-0c.adoc[ElementAttribute]( xref:BloombergLP/balxml/PrefixStack.adoc[PrefixStack] const* prefixStack, char const* qualifiedName, char const* value, char const* prefix = 0, char const* localName = 0, int namespaceId = INT_MIN, char const* namespaceUri = 0, unsigned int flags = 0); ---- [.small]#xref:BloombergLP/balxml/ElementAttribute/2constructor-0c.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#