fixes validatoin errors in xml file