[PATCH 1/5] virNetworkDNSHostDefParseXML: Refactor parsing