1. Home
  2. ...
  3. Data Transformation and Validation
  4. c XJ

c XJ

Available connectors

The XJ component allows you to convert XML and JSON documents without the need for intermediate Java objects.

URI Syntax: xj:resourceUri

Main fields

Path parameters

Name
Description
Default
Type
resourceUri (producer)(required) Path to the template. The following is supported by the default URIResolver. You can prefix with: classpath, file, http, ref or bean.—String

Query parameters

Name
Description
Default
Type
transformDirection (producer)(required) Transformation direction. Can be XML2JSON or JSON2XML.—TransformDirection

Example

The flow receives a POST request.

Then, converts JSON data to XML using the XJ component (transformDirection: JSON2XML).

Finally, logs the result.

cURL

Result

How happy are you with this page?

We use cookies to enhance your experience on our site. By continuing to browse, you agree to our use of cookies.Learn more