[#BloombergLP-balxml-PrefixStack-namespaceIdByIndex] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/PrefixStack.adoc[PrefixStack]::namespaceIdByIndex :relfileprefix: ../../../ :mrdocs: Return the namespace ID at the specified `index` in the prefix stack, where an `index` of 0 is the oldest ID on the stack. If `index` is negative, return the ID at position 'numPrefixes() ‐ index'. Thus, an `index` of ‐1 will return the most recent ID on the stack (i.e., the top of the stack). The behavior is undefined if `index > numPrefixes()` or `index < ‐numPrefixes()`. == Synopsis Declared in `<balxml_prefixstack.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int namespaceIdByIndex(int index) const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#