IPB
>  Man Pages > Linux > openSUSE 10.2 > Section 3 > XML::Parser::Style::Stream man page

XML::Parser::Style::Stream man page

Section 3 - openSUSE 10.2 Man Pages

Other operating system man pages available here


Advanced Search

Hopefully, this page is exactly what you are looking for, but if not, you can always find further assistance on Unix/Linux Forum!


Parser::Style::Stream(User Contributed Perl DocumentatParser::Style::Stream(3)



NAME
       XML::Parser::Style::Stream - Stream style for XML::Parser

SYNOPSIS
         use XML::Parser;
         my $p = XML::Parser->new(Style => 'Stream', Pkg => 'MySubs');
         $p->parsefile('foo.xml');

         {
           package MySubs;

           sub StartTag {
             my ($e, $name) = @_;
             # do something with start tags
           }

           sub EndTag {
             my ($e, $name) = @_;
             # do something with end tags
           }

           sub Characters {
             my ($e, $data) = @_;
             # do something with text nodes
           }
         }

DESCRIPTION
       This style uses the Pkg option to find subs in a given package to call
       for each event.  If none of the subs that this style looks for is
       there, then the effect of parsing with this style is to print a canoni-
       cal copy of the document without comments or declarations.  All the
       subs receive as their 1st parameter the Expat instance for the document
       they're parsing.

       It looks for the following routines:

       * StartDocument
           Called at the start of the parse .

       * StartTag
           Called for every start tag with a second parameter of the element
           type. The $_ variable will contain a copy of the tag and the %_
           variable will contain attribute values supplied for that element.

       * EndTag
           Called for every end tag with a second parameter of the element
           type. The $_ variable will contain a copy of the end tag.

       * Text
           Called just before start or end tags with accumulated non-markup
           text in the $_ variable.

       * PI
           Called for processing instructions. The $_ variable will contain a
           copy of the PI and the target and data are sent as 2nd and 3rd
           parameters respectively.

       * EndDocument
           Called at conclusion of the parse.



perl v5.8.8                       2003-08-18          Parser::Style::Stream(3)


Man(1) output converted with man2html and wrapped by fishsponge

This page was generated on Sat Sep 8 16:37:22 GMT 2007

Your favourite pages:

No pages logged yet.
Trying to save cookie...

Top 10 most popular pages:

svn man page (6162 hits)
(FreeBSD 6.2)

sqlite3 man page (5598 hits)
(openSUSE 10.2)

adv_cap_autoneg man page (5045 hits)
(Solaris 10 11_06)

CPAN man page (4791 hits)
(Suse Linux 10.1)

ssh man page (4439 hits)
(Suse Linux 10.1)

ssh-socks5-proxy-connect man page (3525 hits)
(Solaris 10 11_06)

signal man page (3395 hits)
(Suse Linux 10.1)

netcat man page (3376 hits)
(Suse Linux 10.1)

pprosetup man page (2886 hits)
(Solaris 10 11_06)

startproc man page (2738 hits)
(Suse Linux 10.1)

Useful Links

Go Back

Visitor Statistics


Valid XHTML 1.0 Transitional     Valid CSS!

Partners: Cambridge Plus :: Pyrenees Ski Holidays :: PIC Project Development :: <Link Available>
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum