first_child method

first_child

Moves the TreeWalker to the first visible child of the current node, and returns the new node. If the current node has no visible children, returns null, and retains the current node.

Returns

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

def first_child(self):
    ...

See Also