HTML::TokeParser::SimpUserTContributed Perl HTML::TokeParser::Simple::Token(3)



NAME
       HTML::TokeParser::Simple::Token - Base class for
       "HTML::TokeParser::Simple" tokens.

SYNOPSIS
        use HTML::TokeParser::Simple;
        my $p = HTML::TokeParser::Simple->new( $somefile );

        while ( my $token = $p->get_token ) {
            # This prints all text in an HTML doc (i.e., it strips the HTML)
            next unless $token->is_text;
            print $token->as_is;
        }

DESCRIPTION
       This is the base class for all returned tokens.  It should never be
       instantiated directly.  In fact, it will "croak()" if it is.

METHODS
       The following list of methods are provided by this class.  Most of
       these are stub methods which must be overridden in a subclass.  See
       HTML::TokeParser::Simple for descriptions of these methods.

       o   as_is

       o   delete_attr

       o   get_attr

       o   get_attrseq

       o   get_tag

       o   get_token0

       o   is_comment

       o   is_declaration

       o   is_end_tag

       o   is_pi

       o   is_process_instruction

       o   is_start_tag

       o   is_tag

       o   is_text

       o   return_attr

       o   return_attrseq

       o   return_tag

       o   return_text

       o   return_token0

       o   rewrite_tag

       o   set_attr



perl v5.16.3                      2005-11-29HTML::TokeParser::Simple::Token(3)
