Creates XML for PGM maps