Here is an example of the type of data I need to parse. 

 

AAA["bbb”["ccc”]]

 

The file has exactly one line with no terminator. Ideally, I would like to get 
2 elements. The first is the AAA, and the second is the rest of the line. I can 
work with or without the first left bracket.

 

 

From: Mark Kozak 
Sent: Thursday, November 14, 2024 8:58 AM
To: [email protected]
Subject: RE: Parsing text without an end terminator?

 

The final terminator is not allowed.

 

From: Mike Beckerle <[email protected]> 
Sent: Thursday, November 14, 2024 8:55 AM
To: [email protected] <mailto:[email protected]> 
Subject: Re: Parsing text without an end terminator?

 

Did you try using dfdl:separator ? 

 

To clarify, in your format is this final terminator optional, or is it not 
allowed to be present? 

 

Alas, the dfdl:documentFinalTerminatorCanBeMissing property is not implemented 
by Daffodil. (See https://daffodil.apache.org/unsupported/)

It is suitable only for final terminators that are optional, but which will be 
added when unparsing. 

 

 

On Wed, Nov 13, 2024 at 5:42 PM Mark Kozak <[email protected] 
<mailto:[email protected]> > wrote:

Hello Community,

 

I have a text file that is delimited with a character like :

The challenge I am having is that there is no delimiter at the end of the file. 
I can get things to work if I add a new-line to the end and specify a 
terminator to be the NL. I thought the documentFinalTerminatorCanBeMissing 
property would be the solution, but setting that to yes did not appear to make 
a difference. Are there any recommended workarounds?

 

Thank for the support,

 

Mark Kozak

Director of Engineering

Adeptus Cyber Solutions

Adeptus-CS.com

 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to