XML::SAX::SimpleDispatcherSAX handler to dispatch subroutines based on XPath like simple path and name of children tags under that node | |
Download |
XML::SAX::SimpleDispatcher Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Masayoshi Sekimura
- Publisher web site:
- http://search.cpan.org/~sekimura/
XML::SAX::SimpleDispatcher Tags
XML::SAX::SimpleDispatcher Description
SAX handler to dispatch subroutines based on XPath like simple path and name of children tags under that node XML::SAX::SimpleDispatcher dispatches subroutine calls based on a XPath like path. This can be handy tweaking children nodes data while parsing data by SAX parser.SYNOPSIS use XML::SAX::SimpleDispatcher; use XML::SAX::ParserFactory; my $stash; my $handler = XML::SAX::SimpleDispatcher->new( process => { '/Books/Book' => }, ], } ); my $parser = XML::SAX::ParserFactory->parser(Handler => $handler); $parser->parse_string('< Books >< Book >< Title >Learning Perl< /Title >< /Book >< /Books >'); ## And then, $stash has a list of context inside of 'Title' tag Requirements: · Perl
XML::SAX::SimpleDispatcher Related Software