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

Move to the next node in the data stream created by `open`&period;

== Synopsis

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

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

== Description

Allow the node&apos;s properties to be queried via the `Reader` accessors&period; Return 0 on successful read, 1 if there are no more nodes to read, and a negative number otherwise&period; Note that each call to `advanceToNextNode` 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 will not be valid once `advanceToNextNode` is called&period; Note that the reader will not be on a valid node until the first call to `advanceToNextNode` after the reader is opened&period;

== Return Value

0 on successful read, 1 if there are no more nodes, and a negative number otherwise


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