FANDOM


Returns the path to a child node's next sibling node.

Syntax:

revXMLNextSibling(<treeID>, <siblingNode>, [incText] )

Examples:

revXMLNextSibling(3,"/City/Publisher")
put revXMLNextSibling(the currTree of me,thisNode) into nextNode

Use the revXMLNextSibling function to go forward through the list of nodes on the current level.

If the revXMLNextSibling function encounters an error, it returns an error message starting with "xmlerr".

If the incText form is specified and is true the function will return text nodes in processing. Text nodes can be accessed using the revXMLNodeContents function with the extended path format where text only nodes are numerically indexed eg summary/command/[1] is the first text node of the summary/command node.

The incText form is experimental.

The revXMLNextSibling function is part of the XML library. To ensure that the function works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions pane of the Standalone Application Settings window, make sure the "XML" checkbox is checked.

Parameters:

  • treeID: The number returned by the revXMLCreateTree or revXMLCreateTreeFromFilefunction when you created the XML tree.
  • siblingNode: The path to the node where you want to start.
  • Returns: The revXMLNextSibling function returns a string consisting of thepath to the next node with the same parent as the siblingNode. Ifthere is no next sibling node, the revXMLNextSibling function returns empty.

See also: revXMLFirstChild (function), nodes (property),