Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-992

Insert easily into MongoDB - convert to DBObject

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      It has come up many times to be able to take an XML message and insert into MongoDB as a proper BSON document (not an XML string).

      Many people pose it as converting XML to JSON but of course one inserts into MongoDB through the MongoDB drivers so one doesn't actually convert to JSON and there are not standard public libraries for MongoDB like JSON.

      It would be useful to have a method to convert an XML document (or have a constructor) to a DBObject, mapping attributes, elements, and multiple elements appropriately or with options to decide from a few reasonable ways of mapping.

      I have heard this mostly from enterprises who mostly use Java so adding to this project but could be true of all the MongoDB drivers.

            Assignee:
            Unassigned Unassigned
            Reporter:
            matt.kalan@mongodb.com Matt Kalan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: