[libvirt] [PATCH RFC 0/2] XML: Improve XML parse error reporting

Peter Krempa pkrempa at redhat.com
Mon Sep 5 12:33:38 UTC 2011


First patch modifies the error reporting function on parse errors of XML files.
A new, more informative message is presented to the user, containing filename
of the offending file, error description and context of the error in libxml2 
style.

Second patch changes default filenames used while parsing XML strings in memory
to NULL, so that the error reporting function does not print bougus filename.


 src/conf/domain_conf.c        - change "domain.xml" to NULL
 src/security/virt-aa-helper.c - change "domain.xml" to NULL
 src/util/xml.c                - modify error reporting function

Peter Krempa (2):
  XML: Improve XML parsing error messages
  XML: Suppress printing "domain.xml" for parse errors on XML strings

 src/conf/domain_conf.c        |    2 +-
 src/security/virt-aa-helper.c |    2 +-
 src/util/xml.c                |   88 +++++++++++++++++++++++++++++++++++------
 3 files changed, 78 insertions(+), 14 deletions(-)

-- 
1.7.3.4




More information about the libvir-list mailing list