Indeed It's worthy to do this.In the patch set I just used it once.And after several days I will modify virsh dumpxml test(add some options' check) So I think we can add it to TODO list that I will modify all the files use this function.