This is an example that illustrates how Smooks can be used to validate xml message fragments.
What this example illustrates is:
- How to create a set of Regex and MVEL "ruleBases" (in the "rules" folder).
- How to define localized messages for the rules defined in your ruleBases.
- How to config your ruleBases in your Smooks configuration.
- How to target validation rules at specfic message fragments.
See:
- The "Main" class in src/main/java/example/Main.java.
- The input message in input-message.xml.
- The code in the src/main/java folder tree (.java).
- smooks-config.xml.
- The rules in rule message bundles in the "rules/i18n" folder.
mvn clean package
mvn exec:exec