tted characters as flyweight objects drastically reduces
memory consumption.
</p>

<p>
The example program parses, manipulates and stores HTML documents following
flyweight-based representation techniques. Given the hierarchical nature
of HTML markup, a crude approximation to the formatting options of a given
character is just to equate them with the stack of tag contexts to which
the character belongs, as the figure shows.
</p>

<p align="center">
<img src="html.png"
alt="formatting contexts of characters 