printToString
Prints all the available node information into a string.
maxDepth can be used to configure how deep into the hierarchy to print. 0 will print just this node, and Int.MAX_VALUE effectively prints the whole hierarchy. By default, the whole hierarchy will be printed.
Prints all the matching nodes in the collection into a string.
maxDepth can be used to configure how deep into the hierarchy of each node to print. 0 will print just the node, and Int.MAX_VALUE effectively prints the whole hierarchy. By default, this does not print the sub-hierarchy of the matching modes.