fix parsing XML: not well-formed