home *** CD-ROM | disk | FTP | other *** search
-
- <HTML>
- <HEAD>
- <TITLE>HTML::TreeBuilder - Parser that builds a HTML syntax tree</TITLE>
- <LINK REL="stylesheet" HREF="../../../Active.css" TYPE="text/css">
- <LINK REV="made" HREF="mailto:">
- </HEAD>
-
- <BODY>
- <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
- <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
- <STRONG><P CLASS=block> HTML::TreeBuilder - Parser that builds a HTML syntax tree</P></STRONG>
- </TD></TR>
- </TABLE>
-
- <A NAME="__index__"></A>
- <!-- INDEX BEGIN -->
-
- <UL>
-
- <LI><A HREF="#name">NAME</A></LI><LI><A HREF="#supportedplatforms">SUPPORTED PLATFORMS</A></LI>
-
- <LI><A HREF="#synopsis">SYNOPSIS</A></LI>
- <LI><A HREF="#description">DESCRIPTION</A></LI>
- <LI><A HREF="#see also">SEE ALSO</A></LI>
- <LI><A HREF="#copyright">COPYRIGHT</A></LI>
- <LI><A HREF="#author">AUTHOR</A></LI>
- </UL>
- <!-- INDEX END -->
-
- <HR>
- <P>
- <H1><A NAME="name">NAME</A></H1>
- <P>HTML::TreeBuilder - Parser that builds a HTML syntax tree</P>
- <P>
- <HR>
- <H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
- <UL>
- <LI>Linux</LI>
- <LI>Solaris</LI>
- <LI>Windows</LI>
- </UL>
- <HR>
- <H1><A NAME="synopsis">SYNOPSIS</A></H1>
- <PRE>
- $h = new HTML::TreeBuilder;
- $h->parse($document);
- #...</PRE>
- <PRE>
- print $h->as_HTML; # or any other HTML::Element method</PRE>
- <P>
- <HR>
- <H1><A NAME="description">DESCRIPTION</A></H1>
- <P>This is a parser that builds (and actually itself is) a HTML syntax tree.</P>
- <P>Objects of this class inherit the methods of both <CODE>HTML::Parser</CODE> and
- <CODE>HTML::Element</CODE>. After parsing has taken place it can be regarded as
- the syntax tree itself.</P>
- <P>The following method all control how parsing takes place. You can set
- the attributes by passing a TRUE or FALSE value as argument.</P>
- <DL>
- <DT><STRONG><A NAME="item_implicit_tags">$p->implicit_tags</A></STRONG><BR>
- <DD>
- Setting this attribute to true will instruct the parser to try to
- deduce implicit elements and implicit end tags. If it is false you
- get a parse tree that just reflects the text as it stands. Might be
- useful for quick & dirty parsing. Default is true.
- <P>Implicit elements have the <CODE>implicit()</CODE> attribute set.</P>
- <P></P>
- <DT><STRONG><A NAME="item_ignore_unknown">$p->ignore_unknown</A></STRONG><BR>
- <DD>
- This attribute controls whether unknown tags should be represented as
- elements in the parse tree. Default is true.
- <P></P>
- <DT><STRONG><A NAME="item_ignore_text">$p->ignore_text</A></STRONG><BR>
- <DD>
- Do not represent the text content of elements. This saves space if
- all you want is to examine the structure of the document. Default is
- false.
- <P></P>
- <DT><STRONG><A NAME="item_warn">$p->warn</A></STRONG><BR>
- <DD>
- Call <A HREF="#item_warn"><CODE>warn()</CODE></A> with an appropriate message for syntax errors. Default is
- false.
- <P></P></DL>
- <P>
- <HR>
- <H1><A NAME="see also">SEE ALSO</A></H1>
- <P><A HREF="../../../site/lib/HTML/Parser.html">the HTML::Parser manpage</A>, <A HREF="../../../site/lib/HTML/Element.html">the HTML::Element manpage</A></P>
- <P>
- <HR>
- <H1><A NAME="copyright">COPYRIGHT</A></H1>
- <P>Copyright 1995-1998 Gisle Aas. All rights reserved.</P>
- <P>This library is free software; you can redistribute it and/or
- modify it under the same terms as Perl itself.</P>
- <P>
- <HR>
- <H1><A NAME="author">AUTHOR</A></H1>
- <P>Gisle Aas <<A HREF="mailto:aas@sn.no">aas@sn.no</A>></P>
- <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
- <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
- <STRONG><P CLASS=block> HTML::TreeBuilder - Parser that builds a HTML syntax tree</P></STRONG>
- </TD></TR>
- </TABLE>
-
- </BODY>
-
- </HTML>
-