next_sibling method

next_sibling

Moves the TreeWalker to the next sibling of the current node, and returns the new node. If the current node has no visible next sibling, returns null, and retains the current node.

Returns

The new node, or null if the current node has no next sibling. in the TreeWalker’s logical view.

def next_sibling(self):
    ...

See Also