How to get another tree format

Since tree-1.105 you can define your own tree format simply redefining few call-back functions. The example below generates a XML format: