[#BloombergLP-balxml-Reader-setPrefixStack]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/Reader.adoc[Reader]::setPrefixStack
:relfileprefix: ../../../
:mrdocs:

Set the prefix stack to the stack at the specified `prefixes` address&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
setPrefixStack(xref:BloombergLP/balxml/PrefixStack.adoc[PrefixStack]* prefixes) = 0;
----

== Description

Disable prefix stack support if `prefixes` is null&period; This stack is used to push and pop namespace prefixes as the parse progresses, so that, at any point, the stack will reflect the set of active prefixes for the current node&period; It is legitimate to pass a stack that already contains prefixes, these prefixes shall be preserved when `close` is called, i&period;e&period;, the prefix stack shall be returned to the stack depth it had when `setPrefixStack` was called&period; The behavior is undefined if this method is called after calling `open` and before calling `close`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *prefixes*
| prefix stack to use, or 0 to disable
|===


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