On Tue, 2021-04-13 at 17:38 +0200, Peter Krempa wrote: > Add a helper which will format an XML element with attributes and > children, but compared to virXMLFormatElement it also formats an empty > element if both buffers are empty. > > Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx> > --- > src/libvirt_private.syms | 1 + > src/util/virxml.c | 42 ++++++++++++++++++++++++++-------------- > src/util/virxml.h | 7 +++++++ > 3 files changed, 35 insertions(+), 15 deletions(-) Reviewed-by: Andrea Bolognani <abologna@xxxxxxxxxx> -- Andrea Bolognani / Red Hat / Virtualization