adjust dump xml. make it clean and hierarchical.