Table of Contents


  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

Example of Serialization Anchors

Example of Serialization Anchors

The following example illustrates three serialization anchors:
global level Parser1_Serializer = Serializer >> level 1 contains line level 1 StringSerializer >> level 2 str = "FirstName:«" level 1 ContentSerializer >> level 2 opening_string = "" level 2 closing_string = "" level 2 data_holder = /Person/*s/Name/*s/First level 1 StringSerializer >> level 2 str = "dot013dot010LastName:«"
The first
instructs the Serializer to write the following text in the output document:
First Name:<tab>
writes the value of the
element to the output.
The second
writes the string:
<newline>Last Name:<tab>
The IntelliScript editor represents the newline and tab with ASCII codes and
, respectively.
Now, assume that you run the Serializer on the following XML:
<Person gender="M"> <Name> <First>Ron</First> <Last>Lehrer</Last> </Name> <Id>547329876</Id> <Age>27</Age> </Person>
From the illustrated serialization anchors, the output is:
First Name<tab>Ron<newline>Last Name<tab>
The display of this text is:
First Name: Ron Last Name:
The Serializer contains additional serialization anchors, which are not shown in the above illustration. The complete output of the Serializer is:
First Name: Ron Last Name: Lehrer Id: 547329876 Age: 27 Gender: M

Updated March 03, 2021