source: trunk/gsdl/perllib/cpan/HTML/TokeParser/Simple/Token/Declaration.pm@ 13983

Last change on this file since 13983 was 13983, checked in by lh92, 17 years ago

Added for Realistic Book Project

  • Property svn:keywords set to Author Date Id Revision
File size: 795 bytes
Line 
1package HTML::TokeParser::Simple::Token::Declaration;
2
3use strict;
4
5use vars qw/ $VERSION $REVISION /;
6$REVISION = '$Id: Declaration.pm 13983 2007-03-15 01:32:44Z lh92 $';
7$VERSION = '1.0';
8use base 'HTML::TokeParser::Simple::Token';
9
10sub is_declaration { 1 }
11
121;
13
14__END__
15
16=head1 NAME
17
18HTML::TokeParser::Simple::Token::Declaration - Token.pm declaration class.
19
20=head1 SYNOPSIS
21
22 use HTML::TokeParser::Simple;
23 my $p = HTML::TokeParser::Simple->new( $somefile );
24
25 while ( my $token = $p->get_token ) {
26 # This prints all text in an HTML doc (i.e., it strips the HTML)
27 next unless $token->is_text;
28 print $token->as_is;
29 }
30
31=head1 DESCRIPTION
32
33This is the declaration class for tokens.
34
35=head1 OVERRIDDEN METHODS
36
37=head2 is_declaration
38
39C<is_declaration()> will return true if the token is the DTD at the top of the
40HTML.
41
42=cut
Note: See TracBrowser for help on using the repository browser.