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

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.

0 COMMENTS

We’d like to hear from you!