pub unsafe fn init_parser()Expand description
Initialize the parser library.
Must be called before any other libxml2 functions. Safe to call multiple times (reference-counted in modern libxml2).
§UPSTREAM-PARITY
In modern libxml2 (2.12+), xmlInitParser is reference-counted.
The first call initializes all subsystems; subsequent calls
increment a counter. xmlCleanupParser decrements the counter
and only performs cleanup when it reaches zero.
§SAFETY
Not fully thread-safe during the first call; callers should
call xmlInitParser before creating threads.