[#BloombergLP-balxml-PrefixStack-pushPrefix]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/PrefixStack.adoc[PrefixStack]::pushPrefix
:relfileprefix: ../../../
:mrdocs:

Map the specified `namespaceUri` to the specified `prefix` and return the namespace Id&period; New mapping eclipses previous mapping&period;

== Synopsis

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

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

== Return Value

the namespace ID associated with `namespaceUri`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *prefix*
| namespace prefix to register
| *namespaceUri*
| URI of the namespace to associate with `prefix`
|===


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