The stand-alone IBM DFDL package includes a sample that shows how to wrap IBM DFDL in a SAX interface, for both parsing and serializing. You will need to do a similar thing for JAXB, using JAXB's ability to integrate with SAX.  

Regards
 
Steve Hanson

IBM Hybrid Integration, Hursley, UK
Architect,
IBM DFDL
Co-Chair,
OGF DFDL Working Group
smh@uk.ibm.com
tel:+44-1962-815848
mob:+44-7717-378890




From:        Bing Lu <mfcplus@yahoo.com>
To:        Steve Hanson <smh@uk.ibm.com>, "dfdl-wg@ogf.org" <dfdl-wg@ogf.org>
Cc:        Michele Zundo <michele.zundo@esa.int>, Mike Beckerle <mbeckerle@tresys.com>
Date:        15/07/2017 19:41
Subject:        serialize/unparse question





Hi, if I have a jaxb object generated by dfdl xsd. what's the best way to serialize that structure using IIB java api in a stand alone application, and is there anything equivalent for unparse in dafodil world? thanks

Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU