]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Fix name-space handling
authorPhilipp Hahn <hahn@univention.de>
Tue, 18 Oct 2011 16:22:49 +0000 (18:22 +0200)
committerEric Blake <eblake@redhat.com>
Wed, 19 Oct 2011 13:57:00 +0000 (07:57 -0600)
commitd1249910b837f1bb95aa3fe2a722e91f3afe0317
treefae63d35fd9e7012f9133b7dab67283efdde5e12
parent8f3d1669da6c9e83bc810d0468d8b456fbc75d78
qemu: Fix name-space handling

The XML parser for the qemu specific extensions expects the qemu name-space
to be bound to the 'qemu' prefix. This is too strict, since the name of the
name-space-prefix is only meant as an internal lookup key. Only the associated
URI is relevant.
<domain>...
  <qemu:commandline xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0">
  ...</qemu:commandline>
</domain>

<domain xmlns:ns0="http://libvirt.org/schemas/domain/qemu/1.0">...
  <ns0:commandline>
  ...</ns0:commandline>
</domain>

<domain xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0">
  <qemu:commandline xmlns:qemu="urn:foo">
  ...</qemu:commandline>
</domain>

Remove the test for checking the name-space binding on the top-level <domain>
element. Registering the name-space with XPath is enough.

Signed-off-by: Philipp Hahn <hahn@univention.de>
src/qemu/qemu_domain.c