{
    "mode": "perldoc",
    "parameter": "XML::Grove::PerlSAX",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AGrove%3A%3APerlSAX/json",
    "generated": "2026-06-10T13:45:04Z",
    "synopsis": "use XML::Grove::PerlSAX;\n$parser = XML::Grove::PerlSAX->new( [OPTIONS] );\n$result = $parser->parse( [OPTIONS] );\n# or\n$result = $xmlobject->parse( [OPTIONS] );",
    "sections": {
        "NAME": {
            "content": "XML::Grove::PerlSAX - an PerlSAX event interface for XML objects\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use XML::Grove::PerlSAX;\n\n$parser = XML::Grove::PerlSAX->new( [OPTIONS] );\n$result = $parser->parse( [OPTIONS] );\n\n# or\n$result = $xmlobject->parse( [OPTIONS] );\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "\"XML::Grove::PerlSAX\" is a PerlSAX parser that generates PerlSAX events from XML::Grove objects.\nThis man page summarizes the specific options, handlers, and properties supported by\n\"XML::Grove::PerlSAX\"; please refer to the PerlSAX standard in `\"PerlSAX.pod\"' for general usage\ninformation.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "new Creates a new parser object. Default options for parsing, described below, are passed as\nkey-value pairs or as a single hash. Options may be changed directly in the parser object\nunless stated otherwise. Options passed to `\"parse()\"' override the default options in the\nparser object for the duration of the parse.\n\nparse\nParses a document. Options, described below, are passed as key-value pairs or as a single\nhash. Options passed to `\"parse()\"' override default options in the parser object.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "The following options are supported by \"XML::Grove::PerlSAX\":\n\nHandler          default handler to receive events\nDocumentHandler  handler to receive document events\nSource           hash containing the input source for parsing\n\nIf no handlers are provided then all events will be silently ignored.\n\nIf a single grove argument is passed to the `\"parse()\"' method, it is treated as if a `\"Source\"'\noption was given with a `\"Grove\"' parameter.\n\nThe `\"Source\"' hash may contain the following parameters:\n\nGrove            The grove object used to generate parse events..\n",
            "subsections": []
        },
        "HANDLERS": {
            "content": "The following events are generated by \"XML::Grove::PerlSAX\". XML::Grove::PerlSAX passes the\ncorresponding grove object as it's parameter so the properties passed to the handler are those\nthat were used to create or were assigned to the grove. Please see the docs for the parser used\nto create the grove for a list of properties that were provided.\n",
            "subsections": [
                {
                    "name": "DocumentHandler methods",
                    "content": "startdocument\nReceive notification of the beginning of a document. This is called from the\nXML::Grove::Document object before processing any document content.\n\nenddocument\nReceive notification of the end of a document. This is called from the XML::Grove::Document\nobject after processing all document content.\n\nstartelement\nReceive notification of the beginning of an element. This is called from the\nXML::Grove::Element object before processing any element content.\n\nendelement\nReceive notification of the end of an element. This is called from the XML::Grove::Element\nobject after processing all element content.\n\ncharacters\nReceive notification of character data. This is called from the XML::Grove::Characters\nobject.\n\nprocessinginstruction\nReceive notification of a processing instruction. This is called from the XML::Grove::PI\nobject.\n\ncomment\nReceive notification of a comment. This is called from the XML::Grove::Comment object.\n"
                }
            ]
        },
        "AUTHOR": {
            "content": "Ken MacLeod, ken@bitsko.slc.ut.us\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "",
            "subsections": [
                {
                    "name": "perl",
                    "content": "Extensible Markup Language (XML) <http://www.w3c.org/XML>\n"
                }
            ]
        }
    },
    "summary": "XML::Grove::PerlSAX - an PerlSAX event interface for XML objects",
    "flags": [],
    "examples": [],
    "see_also": []
}