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

Incorrect Solution

Incorrect Solution

Suppose you use the following
RepeatingGroup
to parse the source document:
level 2 RepeatingGroup >> level 3 cleared checkbox skip_failed_iterations level 3 separator_position = after level 3 separator = Marker(NewlineSearch()) level 3 contains line level 3 Content >> level 4 opening_marker = ... level 4 closing_marker = ... level 4 value = LearnByExample("John") level 4 data_holder = /Report/*s/Company/*s/Employee level 3 ...
The output is incorrect:
<Report> <Company> <Employee>John</Employee> <Employee>Marie</Employee> </Company> </Report>
The problem is that both
Company
and
Employee
are multiple-occurrence elements. The
RepeatingGroup
creates multiple
Employee
elements correctly, but it does not know that each
Employee
element should be nested in a separate
Company
element.