Create the XML output structure using the existing input structure.
About this task
This output structure is split into three elements that each contain the same
elements as the input structure. This will allow the map to filter the results and write
them to three different output files.
Procedure
In the Data Mapper tab, expand the
Hierarchical Mapper node and right-click
Structures.
Click New > Structure.
Select Create a new structure where you manually enter
elements and click Next.
Enter a name for your structure, readings_output for
example.
Select the XML representation and click
Finish.
Your structure is created and opens in the editor.
Right-click the left section of the editor and click New Element, then enter a name for the element,
root for example.
Right-click root and click New
Element to add an element named
valid.
In the properties of the valid element, scroll down to
the Inherits From property and click the
[…] button to the right of the field.
Expand you project and select Structures > readings_input.
The elements in the input structure are added under the
valid element.
Right-click the valid element and click
Copy.
Right-click the root element and click
Paste. Repeat this step to create a third element
under root.
Click valid[2] and valid[3] and
edit their names to invalid and
cleansed, respectively.
Press Ctrl
+ S to save your structure.
Results
Your output structure is created and should look like this:
Did this page help you?
If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!