XML generator implemented and tested