Type attributes with E-factory

Jan. 13, 2017
7:45 p.m.
Hi, Sorry for the very basic question. I'm trying lxml for the first time, playing with the builder and I would like to know if it's possible to create type attributes in the top level? E.g: <domain *type='kvm' id='19'*> <name>mcontroller</name> <uuid>9b9e2237-fff5-4598-92ec-89603e4c300a</uuid> </domain> I can't figure out how to add " *type='kvm' id='19'*" to the *domain *above. Something like: controller = E.domain((type='kvm', id='19') E.name('mcontroller'), ... Thanks, ||Rich
2959
Age (days ago)
2963
Last active (days ago)
2 comments
2 participants
participants (2)
-
Richard Wellum
-
Stefan Behnel