[#BloombergLP-balxml-MiniReader-lookupAttribute-00] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/MiniReader.adoc[MiniReader]::lookupAttribute :relfileprefix: ../../../ :mrdocs: `lookupAttribute` overloads == Synopses Declared in `<balxml_minireader.h>` Find the attribute at the specified `index` in the current node. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual int xref:BloombergLP/balxml/MiniReader/lookupAttribute-0b.adoc[lookupAttribute]( xref:BloombergLP/balxml/ElementAttribute.adoc[ElementAttribute]* attribute, int index) const override; ---- [.small]#xref:BloombergLP/balxml/MiniReader/lookupAttribute-0b.adoc[_» more..._]# Find the attribute with the specified `qname` in the current node. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual int xref:BloombergLP/balxml/MiniReader/lookupAttribute-07.adoc[lookupAttribute]( xref:BloombergLP/balxml/ElementAttribute.adoc[ElementAttribute]* attribute, char const* qname) const override; ---- [.small]#xref:BloombergLP/balxml/MiniReader/lookupAttribute-07.adoc[_» more..._]# Find the attribute with the specified `localName` and `namespaceId`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual int xref:BloombergLP/balxml/MiniReader/lookupAttribute-09.adoc[lookupAttribute]( xref:BloombergLP/balxml/ElementAttribute.adoc[ElementAttribute]* attribute, char const* localName, int namespaceId) const override; ---- [.small]#xref:BloombergLP/balxml/MiniReader/lookupAttribute-09.adoc[_» more..._]# Find the attribute with the specified `localName` and `namespaceUri`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual int xref:BloombergLP/balxml/MiniReader/lookupAttribute-06.adoc[lookupAttribute]( xref:BloombergLP/balxml/ElementAttribute.adoc[ElementAttribute]* attribute, char const* localName, char const* namespaceUri) const override; ---- [.small]#xref:BloombergLP/balxml/MiniReader/lookupAttribute-06.adoc[_» more..._]# == Return Value 0 on success, 1 if not found, and a negative value otherwise == Parameters [cols="1,4"] |=== | Name| Description | *attribute* | structure to receive the attribute | *index* | zero‐based attribute index in the current node | *qname* | qualified name of the attribute to find | *localName* | local name of the attribute to find | *namespaceId* | namespace ID, or ‐1 for the default | *namespaceUri* | namespace URI, or 0 for the default |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#