Posted: Wed Jul 08, 2015 6:51 pm Post subject: Re: DFDL to serialize optional delimiters - howto?
Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
martc wrote:
I want to know how to make the DFDL parser to include the optional delimiters when serializing the output.
For example if my dfdl model contains 5 fields (optional) but my input only contains 1,3 &4 I want to write out the below when serializing the output.
FIELDS1||FIELD3|FIELD4||
Thanks
Don't make the fields optional. Make them mandatory but nillable.
What your output shows is 5 fields with post delimiter '|' and null value for field 2 and field 5...
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum