Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<!-- give jaxb a package to scan for annotations -->
<mulexml:jaxb-context name="myJaxB" packageNames="com.mulesoft.example" />
<sub-flow name="xmlMarshalling">
<!-- sample transformer that would populate your bean -->
<expression-transformer expression="new Employee(name:'John Doe', email:'')" evaluator="groovy" />
<!-- Generate the XML -->
<mulexml:jaxb-object-to-xml-transformer name="myMarshaller" jaxbContext-ref="myJaxB"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.