Creating XML generator (references #3)