This document describes how to use DataWeave in Mule ESB to convert an XML payload to a Java object. An XML file with user data is the input payload. In the Mule flow, DataWeave is used to transform the XML payload into a User Java object by mapping the name and lastName fields to the firstName and lastName properties of the User class. The User class is defined with getters, setters, and a toString method for the firstName and lastName properties. This allows the XML payload to be converted to a Java object for further processing in Mule or other Java applications.