xmlBufLength() is not exported by libxml2, use xmlBufUse() instead