{
    "mode": "perldoc",
    "parameter": "XML::LibXML::SAX::Generator",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ASAX%3A%3AGenerator/json",
    "generated": "2026-06-10T23:51:41Z",
    "synopsis": "my $handler = MySAXHandler->new();\nmy $generator = XML::LibXML::SAX::Generator->new(Handler => $handler);\nmy $dom = XML::LibXML->new->parsefile(\"foo.xml\");\n$generator->generate($dom);",
    "sections": {
        "NAME": {
            "content": "XML::LibXML::SAX::Generator - Generate SAX events from a LibXML tree\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "my $handler = MySAXHandler->new();\nmy $generator = XML::LibXML::SAX::Generator->new(Handler => $handler);\nmy $dom = XML::LibXML->new->parsefile(\"foo.xml\");\n\n$generator->generate($dom);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "THIS CLASS IS DEPRECATED! Use XML::LibXML::SAX::Parser instead!\n\nThis helper class allows you to generate SAX events from any XML::LibXML node, and all it's\nsub-nodes. This basically gives you interop from XML::LibXML to other modules that may implement\nSAX.\n\nIt uses SAX2 style, but should be compatible with anything SAX1, by use of stringification\noverloading.\n\nThere is nothing to really know about, beyond the synopsis above, and a general knowledge of how\nto use SAX, which is beyond the scope here.\n",
            "subsections": []
        }
    },
    "summary": "XML::LibXML::SAX::Generator - Generate SAX events from a LibXML tree",
    "flags": [],
    "examples": [],
    "see_also": []
}