Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: changed to use github OpenDFDL location for examples.

...

Daffodil has a Java API.  Examples that call Daffodil are in the github OpenDFDL examples repository which you can get via 

Code Block
git clone https://github.com/OpenDFDL/examples.git

'This contains a helloWorld-type simple application and perhaps other examples Attached to this page is a helloWorld.zip which is the Daffodil/DFDL version of a hello world program. It parses some data "Hello world! " into XML and unparses it back, calling Daffodil from the Java API. It's is self contained so just unzip it. You need sbt 0.13 to build it, and this will pull daffodil's jars and everything else they depend on to your machine automatically. If you have sbt then just typing the command "sbt run" in the root directory where you unzipped cloned this will do all of it. Look in the src/main/java/HelloWorld.java file to see how the Java API works.

...