write.xml function

Write XML File