Table of Contents

Search

  1. Preface
  2. Introduction to Data Transformation
  3. Data Processor Transformation
  4. Wizard Input and Output Formats
  5. Relational Input and Output
  6. XMap
  7. Libraries
  8. Schema Object
  9. Command Line Interface
  10. Scripts
  11. Parsers
  12. Script Ports
  13. Document Processors
  14. Formats
  15. Data Holders
  16. Anchors
  17. Transformers
  18. Actions
  19. Serializers
  20. Mappers
  21. Locators, Keys, and Indexing
  22. Streamers
  23. Validators, Notifications, and Failure Handling
  24. Validation Rules
  25. Custom Script Components

Data Transformation User Guide

Data Transformation User Guide

Example 2: Indexing

Example 2: Indexing

The example of indexing by key at the start of this chapter, illustrates how to use the
target
property with indexing. The following figure illustrates how to configure the
target
property of the
RepeatingGroupMapping
:
level 2 target = level 3 Locator = >> level 4 data_holder = /Hobbies/*s/Hobby/*s/Person level 3 LocatorByKey = >> level 4 key = /Hobbies/*s/Hobby/*s[@name=1] level 4 params = /Report/*s/Children/*s/Child/@hobby level 4 ...
The
target
property identifies the following data holders:
  • A
    Locator
    component identifies an occurrence of
    Person
    . Each iteration creates a new occurrence of
    Person
    .
  • A
    LocatorByKey
    component identifies the occurrence of the
    Hobby
    element, where the occurrence of
    Person
    should be nested. If the
    Hobby
    element already exists, the transformation uses it. If the
    Hobby
    element does not yet exist, the transformation creates it.
For more information, see Example of Indexing by Key.


Updated September 26, 2018