fixing xml validation errors