[libvirt-users] Python XML parsing of domain descriptions?

Stanley, Jon [Tech] Jon.Stanley at gs.com
Fri Oct 1 16:19:15 UTC 2010


Does anyone know of a way to parse the libvirt XML into usable python data structures? Ideally, it would be something like foo['domain']['devices']['bridge'][0]['target'] or something of the sort. What I'm looking to accomplish is to figure out which tap interface goes with a specific domain.

I'm not keen on parsing XML to get that mapping, is there a better way to do it without parsing XML?




More information about the libvirt-users mailing list