Merge "Improve idmap2 xml parsing"