{
    "mode": "perldoc",
    "parameter": "XML::LibXML::SAX::Builder",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/XML%3A%3ALibXML%3A%3ASAX%3A%3ABuilder/json",
    "generated": "2026-06-12T22:49:31Z",
    "synopsis": "use XML::LibXML::SAX::Builder;\nmy $builder = XML::LibXML::SAX::Builder->new();\nmy $gen = XML::Generator::DBI->new(Handler => $builder, dbh => $dbh);\n$gen->execute(\"SELECT * FROM Users\");\nmy $doc = $builder->result();",
    "sections": {
        "NAME": {
            "content": "XML::LibXML::SAX::Builder - Building DOM trees from SAX events.\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use XML::LibXML::SAX::Builder;\nmy $builder = XML::LibXML::SAX::Builder->new();\n\nmy $gen = XML::Generator::DBI->new(Handler => $builder, dbh => $dbh);\n$gen->execute(\"SELECT * FROM Users\");\n\nmy $doc = $builder->result();\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This is a SAX handler that generates a DOM tree from SAX events. Usage is as above. Input is\naccepted from any SAX1 or SAX2 event generator.\n\nBuilding DOM trees from SAX events is quite easy with XML::LibXML::SAX::Builder. The class is\ndesigned as a SAX2 final handler not as a filter!\n\nSince SAX is strictly stream oriented, you should not expect anything to return from a\ngenerator. Instead you have to ask the builder instance directly to get the document built.\nXML::LibXML::SAX::Builder's result() function holds the document generated from the last SAX\nstream.\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "Matt Sergeant, Christian Glahn, Petr Pajas\n",
            "subsections": []
        },
        "VERSION": {
            "content": "2.0134\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "2001-2007, AxKit.com Ltd.\n\n2002-2006, Christian Glahn.\n\n2006-2009, Petr Pajas.\n",
            "subsections": []
        },
        "LICENSE": {
            "content": "This program is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself.\n",
            "subsections": []
        }
    },
    "summary": "XML::LibXML::SAX::Builder - Building DOM trees from SAX events.",
    "flags": [],
    "examples": [],
    "see_also": []
}