I have a positional flat file with multiple optional fields on the end of each row.
ex schema (with option allow early termination):
ROOT (delimited by 0x0D 0x0A)
ROOTLine (positional)
field1 (length = 1)
field2 (length = 2, optional minoccurs set to 0)
field3 (length = 3, optional minoccurs set to 0)
folowing FF gets correctly validated:
ABBCCC
ABB
ABBCCC
AB
when a field in the middle of the file doesn’t have its full length:
ABBCCC
AB
ABBCCC
the xml results into:
<Root>
<RootLine><field1>A</field1><field2>BB</field2><field3>CCC</field3></RootLine>
<RootLine><field1>A</field1><field2>B</field2><field3>ABBCCC</field3></RootLine>
<Root>
Which is wrong because i expect a new RootLine because i have 0x0D 0x0A delimiter.
Does anyone know the solution?