Simple::SAX::Serializer::Parser - Xml parser
Represents xml parser.
use Simple::SAX::Serializer; my $xml = Simple::SAX::Serializer->new(file_name => 'dummy.xml') $xml->handler('root/child', sub { my ($self, $element, $parent) = @_; my $attributes = $element->attributes; my $result = $parent->children_result; $result = $parent->result([]) unless $result; push @$result,Child->new(%$attributes); });
Handles the start of the document. Sets up state for the parse.
Handles the start of an element.
Handles text data in the document.
Handles a closing tag.
The Simple::SAX::Serializer::Parser module is free software. You may distribute under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file.
Simple::SAX::Serializer
Adrian Witas, adrian@webapp.strefa.pl
See also
To install Simple::SAX::Serializer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Simple::SAX::Serializer
CPAN shell
perl -MCPAN -e shell install Simple::SAX::Serializer
For more information on module installation, please visit the detailed CPAN module installation guide.