[#BloombergLP-balxml-Reader-lookupAttribute-09] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/Reader.adoc[Reader]::lookupAttribute :relfileprefix: ../../../ :mrdocs: Find the attribute with the specified `qname` in the current node. == Synopsis Declared in `<balxml_reader.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual int lookupAttribute( xref:BloombergLP/balxml/ElementAttribute.adoc[ElementAttribute]* attribute, char const* qname) const = 0; ---- == Description Fill in the specified `attribute` structure. Return 0 on success, 1 if there is no attribute found with `qname`, and a negative value otherwise. The strings that were filled into the `attribute` structure are invalid upon the next `advanceToNextNode` or `close` is called. == 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 | *qname* | qualified name of the attribute to find |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#