added code to add XML