[Lldb-commits] [lldb] [lldb] Parse XML files without the deprecated SAX1 API (PR #222974)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 11 08:51:01 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Charles Zablit (charles-zablit)
<details>
<summary>Changes</summary>
SAX1 is deprecated, switch to SAX2 instead.
---
Full diff: https://github.com/llvm/llvm-project/pull/222974.diff
1 Files Affected:
- (modified) lldb/source/Host/common/XML.cpp (+1-1)
``````````diff
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();
``````````
</details>
https://github.com/llvm/llvm-project/pull/222974
More information about the lldb-commits
mailing list