---
**[tickets:#3387] imm: old Simple API for XML interface is deprecated**
**Status:** unassigned
**Milestone:** 5.25.09
**Created:** Tue Nov 11, 2025 03:11 AM UTC by Thang Duc Nguyen
**Last Updated:** Tue Nov 11, 2025 03:11 AM UTC
**Owner:** nobody
**Attachments:**
-
[imm_libxml_deprecated_declaration.patch](https://sourceforge.net/p/opensaf/tickets/3387/attachment/imm_libxml_deprecated_declaration.patch)
(2.0 kB; application/octet-stream)
Error log
~~~
src/imm/immloadd/imm_loader.cc: In function 'int
loadImmXML(std::__cxx11::string, std::__cxx11::string, SaUint32T*)':
src/imm/immloadd/imm_loader.cc:2046:68: error: 'int
xmlSAXUserParseFile(xmlSAXHandlerPtr, void*, const char*)' is deprecated
[-Werror=deprecated-declarations]
error = xmlSAXUserParseFile(&my_handler, &state, filename.c_str());
^
In file included from src/imm/immloadd/imm_loader.cc:26:0:
/usr/include/libxml2/libxml/parser.h:1005:3: note: declared here
xmlSAXUserParseFile (xmlSAXHandlerPtr sax,
^~~~~~~~~~~~~~~~~~~
~~~
It’s deprecated because:
- It uses global parser state (not thread-safe).
- It’s less flexible than the newer xmlReader and xmlParserCtxt APIs.
- It doesn’t handle modern XML features (entities, encodings) as cleanly.
Patch reference attached.
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list._______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets