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

In the example of indexing by key at the beginning of this chapter, we used a
RepeatingGroupMapping
configured as shown below. In this example, the
source
property identifies two data holders:
  • It uses a
    Locator
    component to identify an occurrence of
    Child
    . Each iteration processes the next occurrence of
    Child
    , sequentially.
  • It uses a
    LocatorByKey
    component to identify an occurrence of
    Parent
    . This causes each iteration to process the occurrence of
    Parent
    that corresponds to the occurrence of
    Child
    .
level 2 RepeatingGroupMapping >> level 3 source = level 4 Locator = >> level 5 data_holder = /Report/*s/Children/*s/Child level 4 LocatorByKey = >> level 5 key = /Report/*s/Parents/*s/Parent[@id=1] level 5 params = /Report/*s/Children/*s/Child/@parentID level 4 ...
For more information, see Example of Indexing by Key.


Updated September 26, 2018