I'm having an external Export of XML data which I want to have in my mongoDB. Because the data in the export doesnt fit my needs when it comes to the structure, I'd like to kind of "map" it.
Exmaple of kind of the data structure I'm getting from the XML:
<?xml version="1.0" encoding="utf-8" ?>
<ogr:FeatureCollection
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=""
xmlns:ogr="http://ogr.maptools.org/"
xmlns:gml="http://www.opengis.net/gml">
<gml:boundedBy>
<gml:Box>
<gml:coord><gml:X>X.XXX</gml:X><gml:Y>Y.YYY</gml:Y></gml:coord>
<gml:coord><gml:X>X.XXX</gml:X><gml:Y>Y.YYY</gml:Y></gml:coord>
</gml:Box>
</gml:boundedBy>
<gml:featureMember>
<ogr:POI_TypeXYZ fid="POI_XYZ">
<ogr:geometryProperty><gml:Point srsName="XYZ"><gml:coordinates>SAMPLE_DATA</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:ID>SAMPLE_DATA</ogr:ID>
<ogr:TITLE>SAMPLE_DATA</ogr:TITLE>
<ogr:STREET>SAMPLE_DATA</ogr:STREET>
<ogr:NUM>SAMPLE_DATA</ogr:NUM>
<ogr:PHONE>SAMPLE_DATA</ogr:PHONE>
</ogr:POI_TypeXYZ>
</gml:featureMember>
<gml:featureMember>
<ogr:POI_TypeXYZ fid="POI_XYZ">
<ogr:geometryProperty><gml:Point srsName="XYZ"><gml:coordinates>SAMPLE_DATA</gml:coordinates></gml:Point></ogr:geometryProperty>
<ogr:ID>SAMPLE_DATA</ogr:ID>
<ogr:TITLE>SAMPLE_DATA</ogr:TITLE>
<ogr:STREET>SAMPLE_DATA</ogr:STREET>
<ogr:NUM>SAMPLE_DATA</ogr:NUM>
<ogr:PHONE>SAMPLE_DATA</ogr:PHONE>
</ogr:POI_TypeXYZ>
</gml:featureMember>
</ogr:FeatureCollection>
And for example I'd rather have different names for the fields etc. and have full control over that data.
Are there any tools that could help? Or what is the general strategy to handle such things?