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

Close the reader&period; Most, but not all state is reset&period; Specifically, the XML resource resolver and the prefix stack remain&period; The prefix stack shall be returned to the stack depth it had when `setPrefixStack` was called&period; Call the method `open` to reuse the reader&period; Note that `close` invalidates all strings and data structures obtained via `Reader` accessors&period; E&period;g&period;, the pointer returned from `nodeName` for this node will not be valid once `close` is called&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
close() = 0;
----


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