HTML::TreeBuilder - Parser that builds a HTML syntax tree |
HTML::TreeBuilder - Parser that builds a HTML syntax tree
$h = new HTML::TreeBuilder; $h->parse($document); #...
print $h->as_HTML; # or any other HTML::Element method
This is a parser that builds (and actually itself is) a HTML syntax tree.
Objects of this class inherit the methods of both HTML::Parser
and
HTML::Element
. After parsing has taken place it can be regarded as
the syntax tree itself.
The following method all control how parsing takes place. You can set the attributes by passing a TRUE or FALSE value as argument.
Implicit elements have the implicit()
attribute set.
warn()
with an appropriate message for syntax errors. Default is
false.
the HTML::Parser manpage, the HTML::Element manpage
Copyright 1995-1998 Gisle Aas. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Gisle Aas <aas@sn.no>
HTML::TreeBuilder - Parser that builds a HTML syntax tree |