format xml file