Skip to content

Fix XML handling and update libxml2 bindings in python-dmidecode #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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