This example is exactly the same as the "model-driven-basic" example except that it uses a "Virtual Model". This basically means that it uses Maps instead of a real object model. You'll see that everything is the same as with the "model-driven-basic" example except that it doesn't have the model classes defined in the "example.model" package and the smooks-config.xml uses java.util.HashMap in place of the model classes that are in the "example.model" package in the "model-driven-basic" example.
See:
- The "Main" class in src/main/java/example/Main.java.
- The input message in input-message.xml.
- The FreeMarker template in the "example.templates" package in the src/main/java folder.
- The Smooks configuration in smooks-config.xml.
mvn clean package
mvn exec:exec
- Follow the command prompts