home *** CD-ROM | disk | FTP | other *** search
/ Netrunner 2004 October / NETRUNNER0410.ISO / regular / ActivePerl-5.8.4.810-MSWin32-x86.msi / _1a9589537ae5833cd0766127cec01f7c < prev    next >
Encoding:
Text File  |  2004-06-01  |  3.7 KB  |  123 lines

  1.  
  2. require 5; # -*-Text-*- Time-stamp: "2003-09-15 00:32:59 ADT"
  3. package HTML::Tree;
  4. $VERSION = $VERSION = 3.18;
  5.   # This is where the dist gets its version from.
  6.  
  7. # Basically just a happy alias to HTML::TreeBuilder
  8. use HTML::TreeBuilder ();
  9.  
  10. sub new {
  11.   shift; unshift @_, 'HTML::TreeBuilder';
  12.   goto &HTML::TreeBuilder::new;
  13. }
  14. sub new_from_file {
  15.   shift; unshift @_, 'HTML::TreeBuilder';
  16.   goto &HTML::TreeBuilder::new_from_file;
  17. }
  18. sub new_from_content {
  19.   shift; unshift @_, 'HTML::TreeBuilder';
  20.   goto &HTML::TreeBuilder::new_from_content;
  21. }
  22.  
  23. 1;  
  24.  
  25. __END__
  26.  
  27. =head1 NAME
  28.  
  29. HTML::Tree - overview of HTML::TreeBuilder et al
  30.  
  31. =head1 SYNOPSIS
  32.  
  33.   use HTML::TreeBuilder;
  34.   my $tree = HTML::TreeBuilder->new();
  35.   $tree->parse_file($filename);
  36.    #
  37.    # Then do something with the tree, using HTML::Element
  38.    # methods -- for example $tree->dump
  39.    #
  40.    # Then:
  41.   $tree->delete;
  42.  
  43. =head1 DESCRIPTION
  44.  
  45. HTML-Tree is a suite of Perl modules for making parse trees out of
  46. HTML source.  It consists of mainly two modules, whose documentation
  47. you should refer to: L<HTML::TreeBuilder|HTML::TreeBuilder>
  48. and L<HTML::Element|HTML::Element>.
  49.  
  50. HTML::TreeBuilder is the module that builds the parse trees.  (It uses
  51. HTML::Parser to do the work of breaking the HTML up into tokens.)
  52.  
  53. The tree that TreeBuilder builds for you is made up of objects of the
  54. class HTML::Element.
  55.  
  56. If you find that you do not properly understand the documentation
  57. for HTML::TreeBuilder and HTML::Element, it may be because you are
  58. unfamiliar with tree-shaped data structures, or with object-oriented
  59. modules in general.  I have written some articles for I<The Perl
  60. Journal> (C<www.tpj.com>) that seek to provide that background:
  61. my article "A User's View of Object-Oriented Modules" in TPJ17;
  62. my article "Trees" in TPJ18;
  63. and
  64. my article "Scanning HTML" in TPJ19.
  65. The full text of those articles is contained in this distribution, as:
  66.  
  67. L<HTML::Tree::AboutObjects|HTML::Tree::AboutObjects>
  68. -- article: "User's View of Object-Oriented Modules"
  69.  
  70. L<HTML::Tree::AboutTrees|HTML::Tree::AboutTrees>
  71. -- article: "Trees"
  72.  
  73. L<HTML::Tree::Scanning|HTML::Tree::Scanning>
  74. -- article: "Scanning HTML"
  75.  
  76. Readers already familiar with object-oriented modules and tree-shaped
  77. data structures should read just the last article.  Readers without
  78. that background should read the first, then the second, and then the
  79. third.
  80.  
  81. =head1 SEE ALSO
  82.  
  83. L<HTML::TreeBuilder>, L<HTML::Element>, L<HTML::Tagset>,
  84. L<HTML::Parser>
  85.  
  86. L<HTML::DOMbo>
  87.  
  88. The book I<Perl & LWP> by me, Sean M. Burke, published by
  89. O'Reilly and Associates, 2002.  ISBN: 0-596-00178-9
  90.  
  91. It has several chapters to do with HTML processing in general,
  92. and HTML-Tree specifically.  There's more info at:
  93.  
  94.   http://www.oreilly.com/catalog/perllwp/
  95.   http://www.amazon.com/exec/obidos/ASIN/0596001789
  96.  
  97. =head1 COPYRIGHT
  98.  
  99. Copyright 1995-1998 Gisle Aas; copyright 1999-2002 Sean M. Burke.
  100. (Except the articles contained in HTML::Tree::AboutObjects,
  101. HTML::Tree::AboutTrees, and HTML::Tree::Scanning, which are all
  102. copyright 2000 The Perl Journal.)
  103.  
  104. Except for those three TPJ articles, the whole HTML-Tree distribution,
  105. of which this file is a part, is free software; you can redistribute
  106. it and/or modify it under the same terms as Perl itself.
  107.  
  108. Those three TPJ articles may be distributed under the same terms as
  109. Perl itself.
  110.  
  111. The programs and documentation in this dist are distributed in
  112. the hope that they will be useful, but without any warranty; without
  113. even the implied warranty of merchantability or fitness for a
  114. particular purpose.
  115.  
  116. =head1 AUTHOR
  117.  
  118. Original HTML-Tree author Gisle Aas E<lt>gisle@aas.noE<gt>; current
  119. maintainer Sean M. Burke, E<lt>sburke@cpan.orgE<gt>
  120.  
  121. =cut
  122.  
  123.