[PATCH v2 0/3] util/xml: make xml parser error reporting less terrible

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

 



libxml2 has terrible error reporting when failing to open files, which
has led to significant wasted time on wild goose chases. This improves
it by taking libxml2 out of the business of opening & reading files.

Daniel P. Berrangé (3):
  util/xml: fix extraction of XML context
  util/xml: don't assume libxml2 has the filename of the document
  util/xml: open XML files before calling libxml2

 src/util/virxml.c                             | 29 +++++++++++++------
 .../broken-xml-invalid.x86_64-latest.err      |  4 +--
 .../nonexistent-file.x86_64-latest.err        |  2 +-
 3 files changed, 23 insertions(+), 12 deletions(-)

-- 
2.46.0




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux