You are viewing an older version of this topic. To go to a different version, use the version menu at the upper-right. +

Object-to-XML Transformer Reference


Object-to-XML Transformer Reference

*Purpose:* Use a Object-to-XML transformer to transform a Java Object to XML data using XStream.

Minimum Configuration: The name of the XStream driver class.

Discussion: A Object-to-XML transformer transforms Java Object data to XML using the specified XStream driver class.

In addition to the properties common to all transformers, you can also specify class aliases and converters, as well as whether or not to accept the Mule Message.

Use the General tab to specify or browse to the XStream driver class.

+ object-to-xml1


Check the Accept Mule Message box to have the transformer accept the Mule Message. Accepting the Mule Message means that the transformer serializes the entire Mule Message, not just the message payload. The entire Mule Message includes the payload, message properties, correlation ID, and so forth.

Use the Advanced tab to optionally configure the properties standard to all transformers, plus add or change class aliases and class converters.

+ object-to-xml2


Use the Aliases pane to create, edit, or delete aliases for specific classes. Similarly, use the Converters pane to create, edit, or delete class converters.

Mule ESB Reference

For more information, see here.

In this topic: