Update old inline formations to xml
Convert formation xml to string for java