Skip to content

Conversation

@Yuzuru10
Copy link

@Yuzuru10 Yuzuru10 commented Jul 5, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant