Generate Nice and Grouped XML