Code to write xml file
Added print statement for xml file