Package org.sitemesh.tagprocessor

The SiteMesh TagProcessor

See: Description

Package org.sitemesh.tagprocessor Description

The SiteMesh TagProcessor

This package is for processing tag-like markup languages - things with anglybrackets. HTML, XHTML, WML, XML and other SGML dialects.

Strengths:

It has 2 APIs you can use:

Low level: TagTokenizer

The TagTokenizer scans through a document and fires events as it encounters Tags of interest. Anything that does not qualify as a Tag will be treated as a Text token.

This is a similar approach to the SAX API for XML processing.

High level: TagProcessor

The TagProcessor is built on top of the TagTokenizer and acts as a registry for TagRules and TextFilters. It also supports multiple States, allowing different rules to be applied in different sections of document.

Copyright © 2015. All Rights Reserved.