Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 631 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 631 Bytes

About

This example illustrates how Smooks can be used to perform an XML to Java Transform. It also shows how the populated Object graph is then accessible outside Smooks via the JavaResult instance.

In reality, the Javabeans feature can be used as is (ala JAXB, XStream etc), or can be used to feed data into other fragment transforms e.g. Templating, Scripting or Java Transforms.

See:

  1. The "Main" class in src/main/java/example/Main.java.
  2. The input message in input-message.xml.
  3. The code in the src/main/java folder tree (.java).
  4. smooks-config.xml.

How to run?

  1. mvn clean package
  2. mvn exec:exec