<li>call xmlInitParser() in the "main" thread before using any of the
libxml2 API (except possibly selecting a different memory allocator)</li>
</ul><p>Note that the thread safety cannot be ensured for multiple threads sharing
the same document, the locking must be done at the application level, libxml
exports a basic mutex and reentrant mutexes API in <libxml/threads.h>.
<li>call xmlInitParser() in the "main" thread before using any of the
libxml2 API (except possibly selecting a different memory allocator)</li>
</ul><p>Note that the thread safety cannot be ensured for multiple threads sharing
the same document, the locking must be done at the application level, libxml
exports a basic mutex and reentrant mutexes API in <libxml/threads.h>.