[PATCH 01/11] virDomainInputDefParseXML: Move validation into validator