MyScanner extends CompositeTagScanner { private static final String [] MATCH_IDS = { "MYTAG" }; MyScanner() { super(MATCH_IDS); } ... }
or
- 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