To create your own scanner that can hold children, create a subclass of this class. The composite tag scanner can be configured with:
- Tags which will trigger a match
- Tags which when encountered before a legal end tag, should force a correction
- Preventing more tags of its own type to appear as children
Here are examples of each:
Tags which will trigger a match If we wish to recognize <mytag>,
MyScanner extends CompositeTagScanner { private static final String [] MATCH_IDS = { "MYTAG" }; MyScanner() { super(MATCH_IDS); } ... }
Tags which force correction If we wish to insert end tags if we get a