python-dmidecode
python-dmidecode copied to clipboard
Fix XML handling and update libxml2 bindings in python-dmidecode
Fix XML handling and update libxml2 bindings in python-dmidecode
- Refactored dmidecode_xmlapi C function to use updated libxml2 APIs, improving XML node/document creation and memory management.
- Modified Python dmidecodeXML class methods (QuerySection, QueryTypeId) to better handle XML results with etree parsing.
- Fixed issues related to XML string conversion and error handling.
- This update resolves compatibility problems with newer libxml2 versions, paving the way for better SMBIOS 3.x support in the future.
SMBIOS support enhancements will be addressed separately.
I’ve done my best to modernize the libxml2 Python bindings for compatibility with Python 3.13 and newer environments. While I’ve tested the changes and things appear to work, I’m not a professional C developer, so I’d appreciate a review to ensure everything is implemented correctly and safely.