success output the indented info from xml

add depth-first search