This document describes how to use DataWeave in Mule ESB to convert XML data to a Java object. An XML file with user data is used as input. In the Mule flow, DataWeave transforms the XML payload into a User object using a script that maps the name and lastName fields to firstName and lastName properties. A User.java class is defined to represent the user object with getters, setters and a toString method for the transformed fields. The flow listens on port 8081 and outputs the transformed payload as a Java User object.