[#BloombergLP-balxml-MiniReader-advanceToEndNode]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/MiniReader.adoc[MiniReader]::advanceToEndNode
:relfileprefix: ../../../
:mrdocs:

Skip all the sub elements of the current node and position the reader on its corresponding end node&period; While skipping ensure that the elements being skipped are well&hyphen;formed and do not contain any parsing errors&period; Return 0 on successful skip, and a negative number otherwise (error)&period; The behavior is undefined unless `balxml&colon;&colon;Reader&colon;&colon;e&lowbar;NODE&lowbar;TYPE&lowbar;ELEMENT &equals;&equals; node&period;type()`&period; Note that each call to `advanceToEndNode` invalidates strings and data structures returned when `Reader` accessors were called for the &quot;prior node&quot;&period; E&period;g&period;, the pointer returned from `nodeName` for this node won&apos;t be valid once `advanceToEndNode` is called&period; Note that this method leaves the reader pointing to an end node, so calling one of the `advanceToEndNode` immediately after will not advance the reader further (first call `advanceToNextNode` before calling the `advanceToEndNode` function again)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
int
advanceToEndNode();
----


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