macro to generate all root trees from XML files