]> git.ipfire.org Git - thirdparty/libvirt.git/commit
xml: virXMLNamespace: add prefix
authorJán Tomko <jtomko@redhat.com>
Tue, 20 Aug 2019 22:03:15 +0000 (00:03 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 21 Aug 2019 08:29:20 +0000 (10:29 +0200)
commit2e2710caffccf85e65353022fb6815d4eb23299e
treedd22390dfb314138407282ab2bcaf26065e31441
parent126ac61ea3b355120792c8c0ff2f74e135bc3c82
xml: virXMLNamespace: add prefix

We have hardcoded the namespace prefix in various places:
1) the xmlns string stored in the 'href' function
2) the xmlXPathRegisterNs call in each parser
3) all the parsing and formatting code actually dealing
   with these elements

While eliminating the third one is probably a job for an
actual XML-aware formatter, let's store the prefix separately
here in the virXMLNamespace structure so that future patches
can get rid of the first two bullets.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
src/util/virxml.h