[Validator] Minor fix in XmlLoader