fix_xml (fixes #6)