[Lldb-commits] [lldb] eaab447 - [lldb] Parse XML files without the deprecated SAX1 API (#222974)

via lldb-commits lldb-commits at lists.llvm.org
Mon Sep 14 04:09:03 PDT 2026


Author: Charles Zablit
Date: 2026-09-14T12:08:58+01:00
New Revision: eaab447acac971ed7fbcb51c11343db899ad5ffe

URL: https://github.com/llvm/llvm-project/commit/eaab447acac971ed7fbcb51c11343db899ad5ffe
DIFF: https://github.com/llvm/llvm-project/commit/eaab447acac971ed7fbcb51c11343db899ad5ffe.diff

LOG: [lldb] Parse XML files without the deprecated SAX1 API (#222974)

SAX1 is deprecated, switch to SAX2 instead.

Added: 
    

Modified: 
    lldb/source/Host/common/XML.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Host/common/XML.cpp b/lldb/source/Host/common/XML.cpp
index f480ef3166a44..5bef7a371f1a6 100644
--- a/lldb/source/Host/common/XML.cpp
+++ b/lldb/source/Host/common/XML.cpp
@@ -45,7 +45,7 @@ bool XMLDocument::ParseFile(const char *path) {
 #if LLDB_ENABLE_LIBXML2
   Clear();
   xmlSetGenericErrorFunc((void *)this, XMLDocument::ErrorCallback);
-  m_document = xmlParseFile(path);
+  m_document = xmlReadFile(path, nullptr, 0);
   xmlSetGenericErrorFunc(nullptr, nullptr);
 #endif
   return IsValid();


        


More information about the lldb-commits mailing list