Worked on xml file writing.