It provides a libxml2-compatible C API and that accepted pointers, this would seem to necessitate unsafe at least.