improve Pma2xml