more elegant xml mapping compiler pass