Generate an xml metadata file from our mongo db