Copy Input Element

Copy Input Element

Logic name

Copy Input Element (Document Mapper)

Function

This logic copies the input element.

Data types

Location

Type

First input handler

Node set

Logic output

Node set

= Hint =

For details, refer to Logic specifications.

Properties

Category

Property

Description

Comment

Comment

You can write a description of the logic. It doesn't affect the conversion process.

Specification limits

  • This logic can't be applied if the input/output schema is the table model type.

Logic sample

Mapping definition

Copy Input Element

Logic settings and processing result

The input data under the node is output.

Property settings

Property

Setting

None

 

Input data

<?xml version="1.0" encoding="Shift_JIS"?>
 <Census>
   <Area population="4537" name="Shinetsu">
     <State name="Niigata" population="2378">
       <male>1149</male>
       <female>1229</female>
     </State>
     <State name="Nagano" population="2159">
       <male>1049</male>
       <female>1110</female>
     </State>
   </Area>
   <Area population="3068" Name="Hokuriku">
     <State name="Toyama" population="1095">
       <male>528</male>
       <female>568</female>
     </State>
     <State name="Ishikawa" population="1165">
       <male>562</male>
       <female>603</female>
     </State>
     <State name="Fukui" population="808">
       <male>390</male>
       <female>418</female>
     </State>
   </Area>
 </Census>

Output data

<?xml version="1.0" encoding="UTF-8"?>
 <Census>
   <ByState>
     <State name="Niigata" population="2378">
       <male>1149</male>
       <female>1229</female>
     </State>
     <State name="Nagano" population="2159">
       <male>1049</male>
       <female>1110</female>
     </State>
     <State name="Toyama" population="1095">
       <male>528</male>
       <female>568</female>
     </State>
     <State name="Ishikawa" population="1165">
       <male>562</male>
       <female>603</female>
     </State>
     <State name="Fukui" population="808">
       <male>390</male>
       <female>418</female>
     </State>
   </ByState>
 </Census>

 

= Hint =

For a list of logics, refer to Mapper Logic Guide.