ElementTree.print_hierarchy

ElementTree.print_hierarchy(max_depth=None)

Print the spatial hierarchy of the tree.

Parameters:
max_depthint, optional

The maximum depth of the hierarchy to print. Default is None, in which case the entire hierarchy is printed.

Returns:
None