added XML generator