Xml needs some repair