Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    XML::SAX::SimpleDispatcher 0.02

    Download button

    No screenshots available
    Downloads: 227  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Masayoshi Sekimura | More programs
    Perl Artistic License / FREE
    February 6th, 2010, 04:30 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    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' => [ sub { push @$stash, $_[0]}, ['Title'] ],
     }
     );
     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



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    SAX handler | dispatch subroutines | Perl module | SAX | handler | dispatcher

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM