[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]