Hi Folks,

Here are 6 ways to use DFDL:

1.      Use DFDL to process any well-formed input. All data (even invalid data) 
is okay as long as it is well-formed.
2.      Same as #1 except after generating the XML, validate the XML, i.e., run 
Daffodil with the validate flag.
3.      If erroneous data is detected, put the data into an <invalid> element. 
Continue parsing. No errors raised during parsing. Need to examine the XML that 
is output for the presence of <invalid> elements.
4.      If erroneous data is detected, throw an error, and stop parsing 
immediately. No output is generated.
5.      Same as #4 except don't stop parsing. The output contains the erroneous 
data.
6.      If erroneous data is detected, throw an error, drop the data, continue 
parsing. The output contains only valid data.

None of these ways are "the right way to use DFDL". Which is the "right way" 
depends on your situation and requirements.

Do you agree with the above? In my list of "ways to use DFDL" have I missed any 
ways?

/Roger

Reply via email to