[libvirt PATCH v3 5/8] util: Allow validation for single XML node