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. Using the IntelliScript Editor
  7. XMap
  8. Libraries
  9. Schema Object
  10. Command Line Interface
  11. Scripts
  12. Parsers
  13. Script Ports
  14. Document Processors
  15. Formats
  16. Data Holders
  17. Anchors
  18. Transformers
  19. Actions
  20. Serializers
  21. Mappers
  22. Locators, Keys, and Indexing
  23. Streamers
  24. Validators, Notifications, and Failure Handling
  25. Validation Rules
  26. Custom Script Components

User Guide

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.

0 COMMENTS

We’d like to hear from you!