Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.255.985 Times

HTML::TreeBuilder 3.23

  Date Added: May 14, 2010  |  Visits: 1.570

HTML::TreeBuilder

Report Broken Link
Printer Friendly Version


Product Homepage
Download (114 downloads)



HTML::TreeBuilder is a parser that builds a HTML syntax tree. SYNOPSIS foreach my $file_name (@ARGV) { my $tree = HTML::TreeBuilder->new; # empty tree $tree->parse_file($file_name); print "Hey, heres a dump of the parse tree of $file_name:n"; $tree->dump; # a method we inherit from HTML::Element print "And here it is, bizarrely rerendered as HTML:n", $tree->as_HTML, "n"; # Now that were done with it, we must destroy it. $tree = $tree->delete; } (This class is part of the HTML::Tree dist.) This class is for HTML syntax trees that get built out of HTML source. The way to use it is to: 1. start a new (empty) HTML::TreeBuilder object, 2. then use one of the methods from HTML::Parser (presumably with $tree->parse_file($filename) for files, or with $tree->parse($document_content) and $tree->eof if youve got the content in a string) to parse the HTML document into the tree $tree. (You can combine steps 1 and 2 with the "new_from_file" or "new_from_content" methods.) 2b. call $root->elementify() if you want. 3. do whatever you need to do with the syntax tree, presumably involving traversing it looking for some bit of information in it, 4. and finally, when youre done with the tree, call $tree->delete() to erase the contents of the tree from memory. This kind of thing usually isnt necessary with most Perl objects, but its necessary for TreeBuilder objects. See HTML::Element for a more verbose explanation of why this is the case..

Requirements: No special requirements
Platforms: Linux
Keyword: File Html Syntax Htmltreebuilder Libraries New Parse Parser Programming Syntax Tree Treebuilder
Users rating: 0/10

License: Freeware Size: 122.88 KB
USER REVIEWS
More Reviews or Write Review


HTML::TREEBUILDER RELATED
Libraries  -  Syntax::Highlight::HTML 0.04
Syntax::Highlight::HTML is a Perl module to highlight a HTML syntax. SYNOPSIS use Syntax::Highlight::HTML; my $highlighter = new Syntax::Highlight::HTML; $output = $highlighter->parse($html); If $html contains the following HTML fragment:...
16.38 KB  
Development Tools  -  info2html 2.0
info2html is a perl script which looks for a specific info node in an info file and translates it to HTML syntax.Link directives are translated in URLs pointing back to the server. Some icons are provided for link directives and cross references....
 
Libraries  -  B::Terse 5.8.8
B::Terse - Walk Perl syntax tree, printing terse info about ops. SYNOPSIS perl -MO=Terse[,OPTIONS] foo.pl This version of B::Terse is really just a wrapper that calls B::Concise with the -terse option. It is provided for compatibility with...
12.2 MB  
Libraries  -  B::Concise 5.8.8
B::Concise is a Perl syntax tree, printing concise info about ops. SYNOPSIS perl -MO=Concise[,OPTIONS] foo.pl use B::Concise qw(set_style add_callback); This compiler backend prints the internal OPs of a Perl programs syntax tree in one of...
12.2 MB  
Libraries  -  iCal::Parser::HTML 1.06
iCal::Parser::HTML is a Perl module to generate HTML calendars from iCalendars. SYNOPSIS use iCal::Parser::HTML; my $parser=iCal::Parser::HTML->new; print $parser->parse(type=>$type,start=>$date,files=>[@icals]); This module uses...
50.18 KB  
Libraries  -  Netscape::Bookmarks 1.94
Netscape::Bookmarks is a Perl module to parse, manipulate, or create Netscape Bookmarks files. SYNOPSIS use Netscape::Bookmarks; # parse an existing file my $bookmarks = Netscape::Bookmarks->new( $bookmarks_file ); # -- OR -- # start a...
23.55 KB  
Libraries  -  Parse::RecDescent 1.94
Parse::RecDescent is a Perl module to generate Recursive-Descent Parsers. SYNOPSIS use Parse::RecDescent; # Generate a parser from the specification in $grammar: $parser = new Parse::RecDescent ($grammar); # Generate a parser from the...
122.88 KB  
Libraries  -  Text::MetaMarkup::HTML 0.01
Text::MetaMarkup::HTML is a MM-to-HTML converter. SYNOPSIS use Text::MetaMarkup::HTML; print Text::MetaMarkup::HTML->new->parse(file => $filename); This module extends Text::MetaMarkup and converts the parsed document to HTML....
6.14 KB  
Libraries  -  Config::File 1.4
Config::File is a Perl module to parse a simple configuration file. SYNOPSIS use Config::File; my $config_hash = Config::File::read_config_file($configuration_file); read_config_file parses a simple configuration file and stores its values...
4.1 KB  
Libraries  -  File::Tabular 0.70
File::Tabular can search and edit flat tabular files. SYNOPSIS use File::Tabular; my $f = new File::Tabular($filename); my $row = $f->fetchrow; print $row->{field1}, $row->{field2}; $row = $f->fetchrow(where => someWord); $row =...
16.38 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB