I need a small simple program written in Perl or Scala. It should parse MapInfo format files (mid & mif) and combine them into a single XML file. The XML must be structured such that each row from the MID file is a separate element (call it </object></object></object>