Thanks, Steve, that's great news!

Is there a process for submitting a pull request to the daffodil site?  I'd 
like to propose adding a deserialization example to the "examples" page.


Amy

________________________________
From: Steve Lawrence <[email protected]>
Sent: Wednesday, August 8, 2018 5:41:07 PM
To: [email protected]; Roberts, Amy L2
Subject: Re: reading custom data format, writing custom data format?

Yep, Daffodil handles both deserialization and serialization (DFDL calls
them "parse" and "unparse", respectively). Using the CLI, you can
unparse XML using the "unparse" subcommand and provide the XML as the
input, for example:

  # Parse CSV to XML and save to file
  $ daffodil parse --schema
CSV/src/main/resources/com/tresys/csv/xsd/csv.dfdl.xsd
CSV/src/test/resources/com/tresys/csv/data/simpleCSV.csv > simpleCSV.csv.xml

  # Unparse that XML back to CSV
  $ daffodil unparse --schema
CSV/src/main/resources/com/tresys/csv/xsd/csv.dfdl.xsd simpleCSV.csv.xml

- Steve

On 08/08/2018 07:27 PM, Roberts, Amy L2 wrote:
> Hello,
>
> I'm interested in both serialization and deserialization of custom binary 
> data sets.
>
> My understanding is that daffodil handles deserialization of data into xml - 
> as
> illustrated in the nice examples at https://daffodil.apache.org/examples/.
>
> Does anyone know if daffodil handles serialization, as well?
>
> Thanks,
>
> Amy
>

Reply via email to