Creating the map
Procedure
- In the Repository tree view, expand Metadata > Hierarchical Mapper, right click Maps, and then click New > Map.
- In the Select Type of New Map dialog box that opens, select Standard Map and then click Next.
- Give your new map a name, json2xml in this example, and then click Finish.
- Drag the gdelt-onerec structure you created earlier into both the Input and Output sides of the map.
- On the Output side of the map, change the representation used from JSON to XML by double-clicking Output (JSON) and selecting the XML output representation.
- Drag the Root element from the Input side of the map to the Root element on the Output side. This maps each element from the Input side with its corresponding element on the Outside side, which is a very simple map just for testing purposes.
- Press Ctrl+S to save your map.