Table of Contents

Search

  1. Preface
  2. Components
  3. API collections
  4. Business services
  5. File listeners
  6. Fixed-width file formats
  7. Hierarchical mappers
  8. Hierarchical schemas
  9. Industry data service customizer
  10. Intelligent structure models
  11. Refining intelligent structure models
  12. Mapplets
  13. Saved queries
  14. Shared sequences
  15. User-defined functions

Components

Components

Hierarchical mappers

Hierarchical mappers

A hierarchical mapper maps a hierarchical schema, such as the schema for an industry-standard message, to another hierarchical schema. For example, you can map the XML output of a parser data service to a target XSD file.
A hierarchical mapper loads a source schema and a target schema. It uses statements to link source elements from the source schema to target elements in the target schema. To generate a statement, you can drag a source element to a target element, or you can manually create a statement. In the statement, you define how to convert the data from hierarchical input to hierarchical output as well as define conditions and filters.
For example, you can load a source schema that represents customer invoice data in XML format and map it to a target schema that represents customer orders in XML format. You can use statements to group customer orders by month and to map contact information and order totals.
You can use a hierarchical mapper in a Data Services transformation to process hierarchical input and convert it to hierarchical output that uses a different hierarchical structure, such as converting an XML document into a different XML document or converting a JSON document into a different JSON document.
The following image shows a hierarchical mapper:
The hierarchical mapper designer has two sections: the hierarchical mapper and the statements. The hierarchical mapper includes a source schema and a target schema. Elements in the source schema are linked to elements in the target schema using lines to represent the mappings. The mappings correspond to the statements at the bottom of the designer. Each statement includes statement properties such as the statement name, statement type, input, and output.
  1. Hierarchical mapper. The mapper displays the source and target schemas. You can drag a source element to a target element to generate a statement.
  2. Statements. Edit statement properties or add a new statement.
To use a hierarchical mapper, perform the following tasks:
  1. Create hierarchical schemas based on the hierarchical documents, such as XML or JSON documents. For more information, see Hierarchical schemas.
  2. Create a hierarchical mapper to map the source schema to the target schema.
  3. Create a mapping and select the hierarchical mapper in a Data Services transformation to process the hierarchical input and convert it to hierarchical output. For more information about creating a mapping, see
    Mappings
    . For more information about the Data Services transformation, see
    Transformations
    .

0 COMMENTS

We’d like to hear from you!