Created
May 9, 2012 19:44
-
-
Save marianogonzalez/2648297 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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