creates XML for MacCaption from text file