Tree::Simple::SAX 0.01 review

Download
by rbytes.net on

Tree::Simple::SAX is a set of classes for using Tree::Simple with XML. SYNOPSIS use Tree::Simple::SAX; use XML::SAX::Parse

License: Perl Artistic License
File size: 3K
Developer: Stevan Little
0 stars award from rbytes.net

Tree::Simple::SAX is a set of classes for using Tree::Simple with XML.

SYNOPSIS

use Tree::Simple::SAX;
use XML::SAX::ParserFactory;

my $handler = Tree::Simple::SAX::Handler->new(Tree::Simple->new());

my $p = XML::SAX::ParserFactory->parser(Handler => $handler);
$p->parse_string('Hello !');

# this will create a tree like this:
# { tag_type => 'xml' }
# { tag_type => 'string' }
# { content => 'Hello ', tag_type => 'CDATA' }
# { tag_type => 'world' }
# { content => '!', tag_type => 'CDATA' }

This is an early implementation of an XML::SAX handler which creates a Tree::Simple object hierarchy from the XML stream. It is currently in the proof-of-concept/experimental stages and I plan to add more features in the future.

If anyone else is interested in the development of this module, feel free to contact me (use the email in the AUTHOR section). I am always open to discussion, thoughts, criticism and especially patches.

Requirements:
Perl

Tree::Simple::SAX 0.01 search tags