conf: clean up virDomainChrSourceDefParseXML
conf: clean up virDomainChrSourceDefParseXML

Tweak some conditions and use correct typecasts in enums.

fabianfreyer/libvirt,elmarco/libvirt,crobinso/libvirt,VenkatDatta/libvirt,datto/libvirt,andreabolognani/libvirt,rlaager/libvirt,eskultety/libvirt,zippy2/libvirt,zippy2/libvirt,andreabolognani/libvirt,datto/libvirt,VenkatDatta/libvirt,andreabolognani/libvirt,shugaoye/libvirt,cbosdo/libvirt,zippy2/libvirt,eskultety/libvirt,olafhering/libvirt,elmarco/libvirt,datto/libvirt,VenkatDatta/libvirt,nertpinx/libvirt,elmarco/libvirt,libvirt/libvirt,crobinso/libvirt,zhlcindy/libvirt-1.1.4-maintain,VenkatDatta/libvirt,cbosdo/libvirt,jardasgit/libvirt,taget/libvirt,nertpinx/libvirt,olafhering/libvirt,jfehlig/libvirt,agx/libvirt,andreabolognani/libvirt,cbosdo/libvirt,shugaoye/libvirt,zhlcindy/libvirt-1.1.4-maintain,shugaoye/libvirt,cbosdo/libvirt,zhlcindy/libvirt-1.1.4-maintain,taget/libvirt,jardasgit/libvirt,eskultety/libvirt,rlaager/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,taget/libvirt,shugaoye/libvirt,elmarco/libvirt,rlaager/libvirt,libvirt/libvirt,olafhering/libvirt,shugaoye/libvirt,agx/libvirt,rlaager/libvirt,zhlcindy/libvirt-1.1.4-maintain,agx/libvirt,taget/libvirt,jfehlig/libvirt,VenkatDatta/libvirt,agx/libvirt,jfehlig/libvirt,zhlcindy/libvirt-1.1.4-maintain,datto/libvirt,eskultety/libvirt,jfehlig/libvirt,fabianfreyer/libvirt,cbosdo/libvirt,andreabolognani/libvirt,zippy2/libvirt,jardasgit/libvirt,elmarco/libvirt,jardasgit/libvirt,rlaager/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,olafhering/libvirt,taget/libvirt,datto/libvirt,fabianfreyer/libvirt,crobinso/libvirt,nertpinx/libvirt,agx/libvirt,libvirt/libvirt,libvirt/libvirt,crobinso/libvirt,eskultety/libvirt,jardasgit/libvirt