[#BloombergLP-balxml-Utf8ReaderWrapper-lookupAttribute-0c]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/Utf8ReaderWrapper.adoc[Utf8ReaderWrapper]::lookupAttribute
:relfileprefix: ../../../
:mrdocs:

Find the attribute with the specified `localName` and `namespaceUri`&period;

== Synopsis

Declared in `&lt;balxml&lowbar;utf8readerwrapper&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
int
lookupAttribute(
    xref:BloombergLP/balxml/ElementAttribute.adoc[ElementAttribute]* attribute,
    char const* localName,
    char const* namespaceUri) const override;
----

== Description

Fill in the specified `attribute` structure&period; Return 0 on success, 1 if there is no attribute found with `localName` and `namespaceUri`, and a negative value otherwise&period; If `namespaceUri` &equals;&equals; 0 or a blank string is passed, then the document&apos;s default namespace will be used&period; The strings that were filled into the `attribute` structure are invalid upon the next `advanceToNextNode` or `close` is called&period;

== Return Value

0 on success, 1 if no attribute is found with `localName` and `namespaceUri`, and a negative value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *attribute*
| structure to receive the attribute
| *localName*
| local name of the attribute to find
| *namespaceUri*
| namespace URI, or 0 for the default
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
