Virsh create vm from xml. Instead you can use this script to dump the xml into file...