Is there a way to take a hash of data (or even better an XML document) could be mapped straight to a mongo document. So this hash:

```
@hash = {
   "doc_id"       => 3928,
   "header"       =>[
       {"merchantId"=>["35701"], 
        "merchantName" =>["Lingerie.com"], 
        "createdOn"    =>["2011-09-23/00:33:35"]}
    ], 
   "trailer"      =>[
       {"numberOfProducts"=>["0"]}
    ]
}

```

Would become:

```
> db.doc.first()
{
  _id : ObjectId("4e77bb3b8a3e000000004f7a"),
  doc_id : 3928
  header : [{
      merchantId : "35701", 
      merchantName : Lingerie.com 
  }],
  trailer : [{
    numberOfProducts : 0 
  }]
}

```