XML::Grove 0.46 Alpha review

Download
by rbytes.net on

XML::Grove is a Perl module with Perl-style XML objects. SYNOPSIS use XML::Grove; # Basic parsing and grove building use

License: GPL (GNU General Public License)
File size: 26K
Developer: Ken MacLeod
0 stars award from rbytes.net

XML::Grove is a Perl module with Perl-style XML objects.

SYNOPSIS

use XML::Grove;

# Basic parsing and grove building
use XML::Grove::Builder;
use XML::Parser::PerlSAX;
$grove_builder = XML::Grove::Builder->new;
$parser = XML::Parser::PerlSAX->new ( Handler => $grove_builder );
$document = $parser->parse ( Source => { SystemId => 'filename' } );

# Creating new objects
$document = XML::Grove::Document->new ( Contents => [ ] );
$element = XML::Grove::Element->new ( Name => 'tag',
Attributes => { },
Contents => [ ] );

# Accessing XML objects
$tag_name = $element->{Name};
$contents = $element->{Contents};
$parent = $element->{Parent};
$characters->{Data} = 'XML is fun!';

XML::Grove is a tree-based object model for accessing the information set of parsed or stored XML, HTML, or SGML instances. XML::Grove objects are Perl hashes and arrays where you access the properties of the objects using normal Perl syntax:

$text = $characters->{Data};

Requirements:
Perl

XML::Grove 0.46 Alpha keywords