Formatting wraith xml file