XML::Twig Processing Model
-
Tree mode, using a simplified DOM
-
Possibility to add handlers to elements
- selected by element name, or complex condition,
- called when the element is finished parsing
- handler has access to the tree for the element
-
Possibility to build the tree only for certain elements
- other elements are ignored or output as-is