[#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. Note that the IDs for pre‐registered namespaces (including the empty URI) are less than zero. (See "Preregistered Namespaces" in the 'balxml_namespaceregistry component‐level documentation.) == Synopsis Declared in `<balxml_namespaceregistry.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int lookupOrRegister(std::string_view const& namespaceUri); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#