1HTML::TokeParser::SimplUes:eH:rTTMoCLko:en:ntT:ro:ikPberuPotaceredssesPrIe:nr:slStirDmuopccltueim:oe:nnT(to3ak)teino:n:ProcessInstruction(3)
2
3
4

NAME

6       HTML::TokeParser::Simple::Token::ProcessInstruction - Token.pm process
7       instruction class.
8

SYNOPSIS

10        use HTML::TokeParser::Simple;
11        my $p = HTML::TokeParser::Simple->new( $somefile );
12
13        while ( my $token = $p->get_token ) {
14            # This prints all text in an HTML doc (i.e., it strips the HTML)
15            next unless $token->is_text;
16            print $token->as_is;
17        }
18

DESCRIPTION

20       Process Instructions are from XML.  This is very handy if you need to
21       parse out PHP and similar things with a parser.
22
23       Currently, there appear to be some problems with process instructions.
24       You can override this class if you need finer grained handling of
25       process instructions.
26
27       "is_pi()" and "is_process_instruction()" both return true.
28

OVERRIDDEN METHODS

30       ·   get_token0
31
32       ·   is_pi
33
34       ·   is_process_instruction
35
36       ·   return_token0
37
38
39
40perl v5.28.1            HTML::Toke2P0a1r9s-e0r2:-:0S2imple::Token::ProcessInstruction(3)
Impressum