{
    "mode": "perldoc",
    "parameter": "HTML::TokeParser::Simple::Token::ProcessInstruction",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/HTML%3A%3ATokeParser%3A%3ASimple%3A%3AToken%3A%3AProcessInstruction/json",
    "generated": "2026-10-05T07:10:18Z",
    "synopsis": "use HTML::TokeParser::Simple;\nmy $p = HTML::TokeParser::Simple->new( $somefile );\nwhile ( my $token = $p->gettoken ) {\n# This prints all text in an HTML doc (i.e., it strips the HTML)\nnext unless $token->istext;\nprint $token->asis;\n}",
    "sections": {
        "NAME": {
            "content": "HTML::TokeParser::Simple::Token::ProcessInstruction - Token.pm process instruction class.\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use HTML::TokeParser::Simple;\nmy $p = HTML::TokeParser::Simple->new( $somefile );\n\nwhile ( my $token = $p->gettoken ) {\n# This prints all text in an HTML doc (i.e., it strips the HTML)\nnext unless $token->istext;\nprint $token->asis;\n}\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Process Instructions are from XML. This is very handy if you need to parse out PHP and similar\nthings with a parser.\n\nCurrently, there appear to be some problems with process instructions. You can override this\nclass if you need finer grained handling of process instructions.\n",
            "subsections": [
                {
                    "name": "is_pi",
                    "content": ""
                }
            ]
        },
        "OVERRIDDEN METHODS": {
            "content": "*   gettoken0\n\n*   ispi\n\n*   isprocessinstruction\n\n*   returntoken0\n",
            "subsections": []
        }
    },
    "summary": "HTML::TokeParser::Simple::Token::ProcessInstruction - Token.pm process instruction class.",
    "flags": [],
    "examples": [],
    "see_also": []
}