Skip to content

Instantly share code, notes, and snippets.

@marianogonzalez
Created January 27, 2012 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marianogonzalez/1690883 to your computer and use it in GitHub Desktop.
Save marianogonzalez/1690883 to your computer and use it in GitHub Desktop.
<!-- give jaxb a package to scan for annotations -->
<mulexml:jaxb-context name="myJaxB" packageNames="com.mulesoft.example" />
<sub-flow name="xmlMarshalling">
<!-- custom transformer that would populate your bean -->
<custom-transformer class="com.mulesoft.example.PayloadToBeanTransformer" />
<!-- 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