4
Creating an XML Data Mapper configuration
Table of Contents
Introduction ..................................................................................................................................... 5
Creating a configuration .................................................................................................................. 6
1. Open the XML file ................................................................................................................ 6
2. Identify records ................................................................................................................... 6
3. Save the file ......................................................................................................................... 7
Extracting data ................................................................................................................................. 9
4. Create an Extract step ......................................................................................................... 9
5. Add extra fields to an Extraction step ................................................................................. 9
6. Extract line items using a Repeat step .............................................................................. 10
Renaming steps, fields and detail tables ....................................................................................... 13
7. Rename Extractions steps ................................................................................................. 13
8. Rename fields .................................................................................................................... 13
9. Rename a detail table ........................................................................................................ 14
Changing the data type of fields.................................................................................................... 16
10. Set the default data format ............................................................................................. 7
11. Set a field’s data type to Date ....................................................................................... 16
12. Set a field’s type to Integer ........................................................................................... 17
13. Select a field and set its data type to Currency ............................................................. 17
Fine-tuning using JavaScript .......................................................................................................... 18
14. Post function: capitalize country ................................................................................... 18
15. Split a field and keep one part of it ............................................................................... 18
16. Add a concatenated field............................................................................................... 19
What’s next? .................................................................................................................................. 21