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 | |
---|
1 | package HTML::TokeParser::Simple::Token::Declaration;
|
---|
2 |
|
---|
3 | use strict;
|
---|
4 |
|
---|
5 | use vars qw/ $VERSION $REVISION /;
|
---|
6 | $REVISION = '$Id: Declaration.pm 13983 2007-03-15 01:32:44Z lh92 $';
|
---|
7 | $VERSION = '1.0';
|
---|
8 | use base 'HTML::TokeParser::Simple::Token';
|
---|
9 |
|
---|
10 | sub is_declaration { 1 }
|
---|
11 |
|
---|
12 | 1;
|
---|
13 |
|
---|
14 | __END__
|
---|
15 |
|
---|
16 | =head1 NAME
|
---|
17 |
|
---|
18 | HTML::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 |
|
---|
33 | This is the declaration class for tokens.
|
---|
34 |
|
---|
35 | =head1 OVERRIDDEN METHODS
|
---|
36 |
|
---|
37 | =head2 is_declaration
|
---|
38 |
|
---|
39 | C<is_declaration()> will return true if the token is the DTD at the top of the
|
---|
40 | HTML.
|
---|
41 |
|
---|
42 | =cut
|
---|
Note:
See
TracBrowser
for help on using the repository browser.