Rewrite aries xmls