Create a gist now

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:'john.doe@mulesoft.com')" evaluator="groovy" />
<!-- Generate the XML -->
<mulexml:jaxb-object-to-xml-transformer name="myMarshaller" jaxbContext-ref="myJaxB"/>
</sub-flow>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment