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

Return the integer ID for the specified `namespaceUri`, assigning a new ID if the `namespaceUri` has not been registered before&period; Note that the IDs for pre&hyphen;registered namespaces (including the empty URI) are less than zero&period; (See &quot;Preregistered Namespaces&quot; in the &apos;balxml&lowbar;namespaceregistry component&hyphen;level documentation&period;)

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
lookupOrRegister(std::string&lowbar;view const& namespaceUri);
----


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