{
    "mode": "perldoc",
    "parameter": "XML::SAX::PurePerl",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ASAX%3A%3APurePerl/json",
    "generated": "2026-06-10T23:37:24Z",
    "synopsis": "use XML::Handler::Foo;\nuse XML::SAX::PurePerl;\nmy $handler = XML::Handler::Foo->new();\nmy $parser = XML::SAX::PurePerl->new(Handler => $handler);\n$parser->parseuri(\"myfile.xml\");",
    "sections": {
        "NAME": {
            "content": "XML::SAX::PurePerl - Pure Perl XML Parser with SAX2 interface\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use XML::Handler::Foo;\nuse XML::SAX::PurePerl;\nmy $handler = XML::Handler::Foo->new();\nmy $parser = XML::SAX::PurePerl->new(Handler => $handler);\n$parser->parseuri(\"myfile.xml\");\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This module implements an XML parser in pure perl. It is written around the upcoming perl 5.8's\nunicode support and support for multiple document encodings (using the PerlIO layer), however it\nhas been ported to work with ASCII/UTF8 documents under lower perl versions.\n\nThe SAX2 API is described in detail at http://sourceforge.net/projects/perl-xml/, in the CVS\narchive, under libxml-perl/docs. Hopefully those documents will be in a better location soon.\n\nPlease refer to the SAX2 documentation for how to use this module - it is merely a front end to\nSAX2, and implements nothing that is not in that spec (or at least tries not to - please email\nme if you find errors in this implementation).\n",
            "subsections": []
        },
        "BUGS": {
            "content": "XML::SAX::PurePerl is slow. Very slow. I suggest you use something else in fact. However it is\ngreat as a fallback parser for XML::SAX, where the user might not be able to install an XS based\nparser or C library.\n\nCurrently lots, probably. At the moment the weakest area is parsing DOCTYPE declarations, though\nthe code is in place to start doing this. Also parsing parameter entity references is causing me\nmuch confusion, since it's not exactly what I would call trivial, or well documented in the XML\ngrammar. XML documents with internal subsets are likely to fail.\n\nI am however trying to work towards full conformance using the Oasis test suite.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Matt Sergeant, matt@sergeant.org. Copyright 2001.\n\nPlease report all bugs to the Perl-XML mailing list at perl-xml@listserv.activestate.com.\n",
            "subsections": []
        },
        "LICENSE": {
            "content": "This is free software. You may use it or redistribute it under the same terms as Perl 5.7.2\nitself.\n",
            "subsections": []
        }
    },
    "summary": "XML::SAX::PurePerl - Pure Perl XML Parser with SAX2 interface",
    "flags": [],
    "examples": [],
    "see_also": []
}