[#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`, registering it if necessary. == Synopsis Declared in `<balxml_namespaceregistry.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int lookupOrRegister(std::string_view const& namespaceUri); ---- == Description Assign 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.) == Return Value the integer ID for `namespaceUri` == Parameters [cols="1,4"] |=== | Name| Description | *namespaceUri* | namespace URI to look up or register |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#