Added multiple XML file validation support and sorting based on
validity.