Expand description
C ABI versioning — LIBXML2_VERSION, LIBXSLT_VERSION, runtime version APIs (§83, §84).
This module implements the public C ABI version functions:
xmlLibxmlVersion()— returns LIBXML2_VERSION as integerxmlLibxmlVersionString()— returns LIBXML2_VERSION string pointerxmlParserVersion()— alias for xmlLibxmlVersionStringxmlCheckVersion()— runtime version compatibility checkxsltLibxsltVersion()— returns LIBXSLT_VERSION as integerxsltLibxsltVersionString()— returns LIBXSLT_VERSION string pointerxsltCheckVersion()— runtime XSLT version compatibility check
§Phase 1 status
Complete — all version APIs are implemented.
§Compatibility profile
Currently targeting libxml2 2.12.0 / libxslt 1.1.39 compatibility. These versions are selected as the first modern stable release after the major 2.11 → 2.12 API transition.
§UPSTREAM-PARITY
Upstream version format: major * 10000 + minor * 100 + micro Example: 2.12.0 → 21200
Constants§
- LIBXM
L2_ VERSION - The libxml2 version as a number (compile-time constant).
- LIBXM
L2_ VERSION_ EXTRA - Extra version suffix (empty string for release versions).
- LIBXM
L2_ VERSION_ MAJOR - The libxml2 version major number.
- LIBXM
L2_ VERSION_ MICRO - The libxml2 version micro number.
- LIBXM
L2_ VERSION_ MINOR - The libxml2 version minor number.
- LIBXM
L2_ VERSION_ NUM - libxml2 version as a number: 2 * 10000 + 12 * 100 + 0 = 21200
- LIBXM
L2_ VERSION_ NUMBER - The libxml2 version as a number (alternate name).
- LIBXSLT_
VERSION - The libxslt version as a number (compile-time constant).
- LIBXSLT_
VERSION_ EXTRA - Extra version suffix for libxslt (empty string for release versions).
- LIBXSLT_
VERSION_ MAJOR - The libxslt version major number.
- LIBXSLT_
VERSION_ MICRO - The libxslt version micro number.
- LIBXSLT_
VERSION_ MINOR - The libxslt version minor number.
- LIBXSLT_
VERSION_ NUM - libxslt version as a number: 1 * 10000 + 1 * 100 + 39 = 10139
- LIBXSLT_
VERSION_ NUMBER - The libxslt version as a number (alternate name).
Functions§
- c_
str_ ⚠to_ bytes - Convert a C string pointer to a byte slice (NULL-safe).
- is_
initialized - Check whether the library has been initialized.
- set_
initialized - Mark the library as initialized.
- version_
number - Compute the numeric version from major/minor/micro components.
- xmlCheck
Version - Check that the library version is at least
version. - xmlLibxml
Version - Return the libxml2 version as an integer.
- xmlLibxml
Version String - Return the libxml2 version as a static C string.
- xmlParser
Version - Return the parser version string (alias for
xmlLibxmlVersionString). - xslt
Check Version - Check that the XSLT library version is at least
version. - xslt
Libxslt Version - Return the libxslt version as an integer.
- xslt
Libxslt Version String - Return the libxslt version as a static C string.