| 1 |
$Id: README,v 1.3 1999/02/05 17:54:43 kmacleod Exp $ |
| 2 |
Copyright (C) 1998 Ken MacLeod |
| 3 |
See the file COPYING for distribution terms. |
| 4 |
|
| 5 |
|
| 6 |
Grove Examples |
| 7 |
|
| 8 |
The following examples are listed in concept order, starting with the |
| 9 |
first will lead into concepts in the later examples. All examples use |
| 10 |
XML::Parser. |
| 11 |
|
| 12 |
grove.pl |
| 13 |
Uses the simplest form of XML objects to recursively dump the |
| 14 |
object tree, similar to the `debug' style of XML::Parser. |
| 15 |
|
| 16 |
visitor.pl |
| 17 |
Uses a visitor class and callbacks to dump the tree. This is |
| 18 |
similar to the `sub' style of XML::Parser except that it uses |
| 19 |
generic `visit_element' callbacks instead of by-tag-name |
| 20 |
callbacks (see my-html.pl for that). |
| 21 |
|
| 22 |
my-html.pl, my-html.html |
| 23 |
Uses a visitor class and by-tag-name callbacks to add new tags |
| 24 |
to HTML-like documents. This example in particular shows one |
| 25 |
way to embed Perl code into HTML documents. |