helper library to convert a mongodb document (or any dictionary) to sphinxsearch XML for indexing with xmlpipe2