Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

Central to all Smooks based transforms is the element "Visitor". All supported transformation technologies (Java, XSLT, StringTemplate, Groovy etc) are hooked into the transformation process through implementation of this interface.

DOM Support

For details of how DOM based processing is supported in Smooks, see the SmooksDOMFilter. Also check out the online flash demo.

The DOMElementVisitor is the central building block within the Smooks DOM processing model. It defines 2 simple methods, both of which the SmooksDOMFilter calls at it iterates over the message/document DOM. The methds are:

  1. "visitBefore": Called by SmooksDOMFilter, for a DOM Element, before it iterates over the Element's child/sub content.
  2. "visitAfter": Called by SmooksDOMFilter, for a DOM Element, after it has iterated over the Element's child/sub content.

SAX Support

SAX based Visitor Transforms are not supported yet. See JIRA Issue.