[#BloombergLP-balxml-NamespaceRegistry-lookup-05]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/NamespaceRegistry.adoc[NamespaceRegistry]::lookup
:relfileprefix: ../../../
:mrdocs:

`lookup` overloads

== Synopses

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

Return the URI string for the specified namespace `id`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
char const*
xref:BloombergLP/balxml/NamespaceRegistry/lookup-00.adoc[lookup](int id) const;
----

[.small]#xref:BloombergLP/balxml/NamespaceRegistry/lookup-00.adoc[_» more&period;&period;&period;_]#

Return the integer ID for the specified `namespaceUri`, or &hyphen;1 if it is unregistered&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/balxml/NamespaceRegistry/lookup-0c.adoc[lookup](std::string&lowbar;view const& namespaceUri) const;
----

[.small]#xref:BloombergLP/balxml/NamespaceRegistry/lookup-0c.adoc[_» more&period;&period;&period;_]#

== Return Value

* the URI for `id`, or an empty string if `id` is unknown
* the integer ID for `namespaceUri`, or &hyphen;1 if unregistered

== Parameters

[cols="1,4"]
|===
| Name| Description
| *id*
| namespace identifier to look up
| *namespaceUri*
| namespace URI to look up
|===


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