2022.1

Table Of Contents
moveToNext(scope)
Moves the current position in a text file or XML file to the next instance of scope. What scope
represents depends on the emulation type: text or XML.
Text
scope
Number that may be set to:
l 0 or steps.MOVELINES: the current position is set to the next line.
l 1 or steps.MOVEDELIMITERS: the current position is set to the next delimiter (as
defined in the Input Data settings).
l 2 (next line with content): the current position is set to the next line that contains any text.
Example
The following line of code moves the current position to the next line that contains any text.
steps.moveToNext(2);
XML
scope
Number that may be set to:
l 0 or steps.MOVENODE: The current position is set to the next node in the XML,
regardless of its level in the hierarchy; the next node may be a child element, a sibling
node, or a node that is higher in the XML hierarchy than the current node.
l 1 or steps.MOVESIBLING: the current position is set to the next sibling node in the
XML hierarchy.
JSON
Moves the current position to the next element in the JSON hierarchy based on the specified
scope.
scope
Number that may be set to:
Page 459