generalize xml to mongo import