Learn R Programming

RBaseX (version 0.9.2)

Next: Next

Description

Returns the next result when iterating over a query

Usage

Next(query_obj)

Arguments

query_obj

QueryClass instance-ID

Examples

Run this code
# NOT RUN {
Query_1 <- Query(Session, "collection('TestDB/Test.xml')")
iterResult <- c()

while (More(Query_1)) {
  iterResult <- c(iterResult, Next(Query_1))
  }

print(iterResult)

  [[1]]
  [1] "0d"                                    "<Line_1 line=\"1\">Content 1</Line_1>"

  [[2]]
  [1] "0d"                                    "<Line_2 line=\"2\">Content 2</Line_2>"

# }
# NOT RUN {
# }

Run the code above in your browser using DataLab