Handle xml mangling by xml-mapping