Adding XML Generation