change order of format, xml first