GNU.WIKI: The GNU/Linux Knowledge Base

  [HOME] [PHP Manual] [HowTo] [ABS] [MAN1] [MAN2] [MAN3] [MAN4] [MAN5] [MAN6] [MAN7] [MAN8] [MAN9]

  [0-9] [Aa] [Bb] [Cc] [Dd] [Ee] [Ff] [Gg] [Hh] [Ii] [Jj] [Kk] [Ll] [Mm] [Nn] [Oo] [Pp] [Qq] [Rr] [Ss] [Tt] [Uu] [Vv] [Ww] [Xx] [Yy] [Zz]


       XML::SAX::Tap - Tap a pipeline of SAX processors


       version 0.46


           use XML::SAX::Machines qw( Pipeline Tap ) ;

           my $m = Pipeline(
               Tap( "My::Reformatter", \*STDERR ),

           my $m = Pipeline(
               Tap( "| xmllint --format -" ),


       XML::SAX::Tap is a SAX machine that passes each event it receives on to
       a brach handler and then on down to it's main handler.  This allows
       debugging output, logging output, validators, and other processors (and
       machines, of course) to be placed in a pipeline.  This differs from
       XML::Filter::Tee, XML::Filter::SAXT and XML::SAX::Distributer in that a
       tap is also a pipeline; it contains the processoring that handles the

       It's like XML::Filter::Tee in that the events are not buffered; each
       event is sent first to the tap, and then to the branch (this is
       different from XML::SAX::Dispatcher, which buffers the events).

       It's like XML::SAX::Pipeline in that it contains a series of processors
       in a pipeline; these comprise the "tapping" processors:

                   |                  Tap instance                |
                   |                                              |
                   |  Intake                                      |
                   |  +-----+    +---------+        +---------+   |
        upstream --+->| Tee |--->| Stage_0 |--...-->| Stage_N |   |
                   |  +-----+    +---------+        +---------+   |
                   |         \                                    |
                   |          \                          Exhaust  |
                   |           +----------------------------------+--> downstream
                   |                                              |

       The events are not copied, since they may be data structures that are
       difficult or impossibly to copy properly, like parts of a C-based DOM

       Events go to the tap first so that you can validate events using a tap
       that throws exceptions and they will be acted on before the tap's
       handler sees them.

       This machine has no "Exhaust" port (see XML::SAX::Machine for details
       about "Intake" and "Exhaust" ports).


       XML::SAX::Tap - Tap a pipeline of SAX processors


               my $tap = XML::SAX::Tap->new( @tap_processors, \%options );


           Barrie Slaymaker <>


           Copyright 2002, Barrie Slaymaker, All Rights Reserved

       You may use this module under the terms of the Artistic, GNU Public, or
       BSD licenses, as you choose.


       ·   Barry Slaymaker

       ·   Chris Prather <>


       This software is copyright (c) 2013 by Barry Slaymaker.

       This is free software; you can redistribute it and/or modify it under
       the same terms as the Perl 5 programming language system itself.

  All copyrights belong to their respective owners. Other content (c) 2014-2018, GNU.WIKI. Please report site errors to
Page load time: 0.107 seconds. Last modified: November 04 2018 12:49:43.