[#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. While skipping ensure that the elements being skipped are well‐formed and do not contain any parsing errors. Return 0 on successful skip, and a negative number otherwise (error). The behavior is undefined unless `balxml::Reader::e_NODE_TYPE_ELEMENT == node.type()`. Note that each call to `advanceToEndNode` invalidates strings and data structures returned when `Reader` accessors were called for the "prior node". E.g., the pointer returned from `nodeName` for this node won't be valid once `advanceToEndNode` is called. 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). == Synopsis Declared in `<balxml_minireader.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual int advanceToEndNode(); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#