[#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 null&hyphen;terminated string containing the URI of the namespace registered with the specified `id` or an empty (not null) string if `id` does not correspond to a preregistered namespace or a namespace that was previously registered with this object&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 the namespace has not been registered&period; Note that not all negative return values correspond to unregistered namespaces&period; Preregistered namespaces always have negative IDs&period; (See &quot;Preregistered Namespaces&quot; in the `balxml&lowbar;namespaceregistry` component&hyphen;level documentation&period;) Note that a return value of &hyphen;1 can mean either an unregistered namespace or an empty URI string&period; This dual&hyphen;use of &hyphen;1 is deliberate and simplifies error handling in most clients&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;_]#


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