
On Fri, May 16, 2008 at 01:26:07AM +0200, Stefan de Konink wrote:
In my previous email Daniel made clear that for many functions it is preferable to have access to the XML output. I would like to know what the general opinion is about defining a domain.
I can understand that people don't mind to define a domain manually or with tools and pump it inside libvirt with the virDomainDefineXML call.
But why are the XML tree manipulating features not incorporated into the API? Slightly more 'semantics based' than Attach/Detach Device. Allowing to specify the information that is going into the XML.
Believe me, I loathe XML for this purpose too. It defeats type safety, encourages random 'extension' and is impossible to check if the drivers conform. Nevertheless changing it now is a lot of extra work for not much immediate benefit. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top