add buffer-based version of de-xml function for use by JNI in
succinct data.