depth-first and breadth-first traversal of xml documents
Call it as python3 xml-traverse < filename > <'d' or 'b'>
to traverse xml in filename depth-first (d) or breadth-first (b).
Prints tags, their attributes and text; replace print
in the code with something more useful to do some task.