XML::TreeBuilder

Parser that builds a tree of XML::Element objects
Download

XML::TreeBuilder Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Sean M. Burke
  • Publisher web site:
  • http://search.cpan.org/~sburke/

XML::TreeBuilder Tags


XML::TreeBuilder Description

Parser that builds a tree of XML::Element objects XML::TreeBuilder is a Perl parser that builds a tree of XML::Element objects.SYNOPSIS foreach my $file_name (@ARGV) { my $tree = XML::TreeBuilder->new; # empty tree $tree->parse_file($file_name); print "Hey, here's a dump of the parse tree of $file_name: "; $tree->dump; # a method we inherit from XML::Element print "And here it is, bizarrely rerendered as XML: ", $tree->as_XML, " "; # Now that we're done with it, we must destroy it. $tree = $tree->delete; }This module uses XML::Parser to make XML document trees constructed of XML::Element objects (and XML::Element is a subclass of HTML::Element adapted for XML). XML::TreeBuilder is meant particularly for people who are used to the HTML::TreeBuilder / HTML::Element interface to document trees, and who don't want to learn some other document interface like XML::Twig or XML::DOM. Requirements: · Perl


XML::TreeBuilder Related Software