[#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 optionally specified `prefixes` address or disable prefix stack support if `prefixes` is null. 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. It is legitimate to pass a stack that already contains prefixes, these prefixes shall be preserved when `close` is called, i.e., the prefix stack shall be returned to the stack depth it had when `setPrefixStack` was called. The behavior is undefined if this method is called after calling `open` and before calling `close`. == Synopsis Declared in `<balxml_reader.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void setPrefixStack(xref:BloombergLP/balxml/PrefixStack.adoc[PrefixStack]* prefixes) = 0; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#