Fixed some things in the way mra handles xml input/output.