{
    "content": [
        {
            "type": "text",
            "text": "# HTML::Tree (perldoc)\n\n## NAME\n\nHTML::Tree - build and scan parse-trees of HTML\n\n## SYNOPSIS\n\nuse HTML::TreeBuilder;\nmy $tree = HTML::TreeBuilder->new();\n$tree->parsefile($filename);\n# Then do something with the tree, using HTML::Element\n# methods -- for example:\n$tree->dump\n# Finally:\n$tree->delete;\n\n## DESCRIPTION\n\nHTML-Tree is a suite of Perl modules for making parse trees out of HTML source. It consists of\nmainly two modules, whose documentation you should refer to: HTML::TreeBuilder and\nHTML::Element.\n\n## Sections\n\n- **NAME**\n- **VERSION**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **METHODS**\n- **SUPPORT**\n- **SEE ALSO**\n- **SOURCE REPOSITORY**\n- **ACKNOWLEDGEMENTS**\n- **AUTHOR**\n- **COPYRIGHT AND LICENSE**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "HTML::Tree",
        "section": "",
        "mode": "perldoc",
        "summary": "HTML::Tree - build and scan parse-trees of HTML",
        "synopsis": "use HTML::TreeBuilder;\nmy $tree = HTML::TreeBuilder->new();\n$tree->parsefile($filename);\n# Then do something with the tree, using HTML::Element\n# methods -- for example:\n$tree->dump\n# Finally:\n$tree->delete;",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "VERSION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 13,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 28,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 15,
                "subsections": []
            },
            {
                "name": "SUPPORT",
                "lines": 29,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "SOURCE REPOSITORY",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "ACKNOWLEDGEMENTS",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 21,
                "subsections": []
            },
            {
                "name": "COPYRIGHT AND LICENSE",
                "lines": 15,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "HTML::Tree - build and scan parse-trees of HTML\n",
                "subsections": []
            },
            "VERSION": {
                "content": "This document describes version 5.07 of HTML::Tree, released August 31, 2017 as part of\nHTML-Tree.\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use HTML::TreeBuilder;\nmy $tree = HTML::TreeBuilder->new();\n$tree->parsefile($filename);\n\n# Then do something with the tree, using HTML::Element\n# methods -- for example:\n\n$tree->dump\n\n# Finally:\n\n$tree->delete;\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "HTML-Tree is a suite of Perl modules for making parse trees out of HTML source. It consists of\nmainly two modules, whose documentation you should refer to: HTML::TreeBuilder and\nHTML::Element.\n\nHTML::TreeBuilder is the module that builds the parse trees. (It uses HTML::Parser to do the\nwork of breaking the HTML up into tokens.)\n\nThe tree that TreeBuilder builds for you is made up of objects of the class HTML::Element.\n\nIf you find that you do not properly understand the documentation for HTML::TreeBuilder and\nHTML::Element, it may be because you are unfamiliar with tree-shaped data structures, or with\nobject-oriented modules in general. Sean Burke has written some articles for *The Perl Journal*\n(\"www.tpj.com\") that seek to provide that background. The full text of those articles is\ncontained in this distribution, as:\n\nHTML::Tree::AboutObjects\n\"User's View of Object-Oriented Modules\" from TPJ17.\n\nHTML::Tree::AboutTrees\n\"Trees\" from TPJ18\n\nHTML::Tree::Scanning\n\"Scanning HTML\" from TPJ19\n\nReaders already familiar with object-oriented modules and tree-shaped data structures should\nread just the last article. Readers without that background should read the first, then the\nsecond, and then the third.\n",
                "subsections": []
            },
            "METHODS": {
                "content": "All these methods simply redirect to the corresponding method in HTML::TreeBuilder. It's more\nefficient to use HTML::TreeBuilder directly, and skip loading HTML::Tree at all.\n\nnew\nRedirects to \"new\" in HTML::TreeBuilder.\n\nnewfromfile\nRedirects to \"newfromfile\" in HTML::TreeBuilder.\n\nnewfromcontent\nRedirects to \"newfromcontent\" in HTML::TreeBuilder.\n\nnewfromurl\nRedirects to \"newfromurl\" in HTML::TreeBuilder.\n",
                "subsections": []
            },
            "SUPPORT": {
                "content": "You can find documentation for this module with the perldoc command.\n\nperldoc HTML::Tree\n\nYou can also look for information at:\n\n*   AnnoCPAN: Annotated CPAN documentation\n\n<http://annocpan.org/dist/HTML-Tree>\n\n*   CPAN Ratings\n\n<http://cpanratings.perl.org/d/HTML-Tree>\n\n*   RT: CPAN's request tracker\n\n<http://rt.cpan.org/NoAuth/Bugs.html?Dist=HTML-Tree>\n\n*   Search CPAN\n\n<http://search.cpan.org/dist/HTML-Tree>\n\n*   Stack Overflow\n\n<http://stackoverflow.com/questions/tagged/html-tree>\n\nIf you have a question about how to use HTML-Tree, Stack Overflow is the place to ask it.\nMake sure you tag it both \"perl\" and \"html-tree\".\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "HTML::TreeBuilder, HTML::Element, HTML::Tagset, HTML::Parser, HTML::DOMbo\n\nThe book *Perl & LWP* by Sean M. Burke published by O'Reilly and Associates, 2002. ISBN:\n0-596-00178-9\n\nIt has several chapters to do with HTML processing in general, and HTML-Tree specifically.\nThere's more info at:\n\nhttp://www.oreilly.com/catalog/perllwp/\n\nhttp://www.amazon.com/exec/obidos/ASIN/0596001789\n",
                "subsections": []
            },
            "SOURCE REPOSITORY": {
                "content": "HTML-Tree is now maintained using Git. The main public repository is\n<https://github.com/kentfredric/HTML-Tree>.\n\nThe best way to send a patch is to make a pull request there.\n",
                "subsections": []
            },
            "ACKNOWLEDGEMENTS": {
                "content": "Thanks to Gisle Aas, Sean Burke and Andy Lester for their original work.\n\nThanks to Chicago Perl Mongers (http://chicago.pm.org) for their patches submitted to HTML::Tree\nas part of the Phalanx project (http://qa.perl.org/phalanx).\n\nThanks to the following people for additional patches and documentation: Terrence Brannon,\nGordon Lack, Chris Madsen and Ricardo Signes.\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Current maintainers:\n\n*   Christopher J. Madsen \"<perl AT cjmweb.net>\"\n\n*   Jeff Fearn \"<jfearn AT cpan.org>\"\n\nOriginal HTML-Tree author:\n\n*   Gisle Aas\n\nFormer maintainers:\n\n*   Sean M. Burke\n\n*   Andy Lester\n\n*   Pete Krawczyk \"<petek AT cpan.org>\"\n\nYou can follow or contribute to HTML-Tree's development at\n<https://github.com/kentfredric/HTML-Tree>.\n",
                "subsections": []
            },
            "COPYRIGHT AND LICENSE": {
                "content": "Copyright 1995-1998 Gisle Aas, 1999-2004 Sean M. Burke, 2005 Andy Lester, 2006 Pete Krawczyk,\n2010 Jeff Fearn, 2012 Christopher J. Madsen. (Except the articles contained in\nHTML::Tree::AboutObjects, HTML::Tree::AboutTrees, and HTML::Tree::Scanning, which are all\ncopyright 2000 The Perl Journal.)\n\nExcept for those three TPJ articles, the whole HTML-Tree distribution, of which this file is a\npart, is free software; you can redistribute it and/or modify it under the same terms as Perl\nitself.\n\nThose three TPJ articles may be distributed under the same terms as Perl itself.\n\nThe programs in this library are distributed in the hope that they will be useful, but without\nany warranty; without even the implied warranty of merchantability or fitness for a particular\npurpose.\n",
                "subsections": []
            }
        }
    }
}