Convert XML file to XMLPipe2 format