now i created flat file schema( for positional file) and my complexity is, For a scenario 10segments will be avaliable in the schema file all are optional elements so i fixed as min occur as 0, max occurs 36,
For e.g: Generated instance to be like this
<Header>
<seg1>
<seg1_child1>111</seg1_child1>
</seg1>
<seg2>
<seg2_child1>222</seg2_child1>
</seg2>
<seg3>
<seg3_child1>333</seg3_child1>
</seg3><!-- upto SEG10-->
</Header>
this can be generated while validating instance.(input: 111222333444555666777888999000),
now the input file like this (111222444555666888) means the output like this
<Header>
<seg1>
<seg1_child1>111</seg1_child1>
</seg1>
<seg2>
<seg2_child1>222</seg2_child1>
</seg2>
<seg3>
<seg3_child1>444</seg3_child1>
</seg3><!-- upto SEG10-->
</Header>
My Question is: i want the output instance like this,
<Header>
<seg1>
<seg1_child1>111</seg1_child1>
</seg1>
<seg2>
<seg2_child1>222</seg2_child1>
</seg2>
<seg4>
<seg4_child1>444</seg4_child1>
</seg4>
<seg5>
<seg5_child1>555</seg5_child1>
</seg5>
<seg6>
<seg6_child1>666</seg6_child1>
</seg6>
<seg8>
<seg8_child1>888</seg8_child1>
</seg8>
</Header>
even i used here as tag identifier concept means looking for so& so tag name,
offset concept also not working here,
:~