{
    "mode": "perldoc",
    "parameter": "XML::Handler::BuildDOM",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AHandler%3A%3ABuildDOM/json",
    "generated": "2026-06-12T05:55:48Z",
    "synopsis": "use XML::Handler::BuildDOM;\nuse XML::Parser::PerlSAX;\nmy $handler = new XML::Handler::BuildDOM (KeepCDATA => 1);\nmy $parser = new XML::Parser::PerlSAX (Handler => $handler);\nmy $doc = $parser->parsefile (\"file.xml\");",
    "sections": {
        "NAME": {
            "content": "XML::Handler::BuildDOM - PerlSAX handler that creates XML::DOM document structures\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use XML::Handler::BuildDOM;\nuse XML::Parser::PerlSAX;\n\nmy $handler = new XML::Handler::BuildDOM (KeepCDATA => 1);\nmy $parser = new XML::Parser::PerlSAX (Handler => $handler);\n\nmy $doc = $parser->parsefile (\"file.xml\");\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "XML::Handler::BuildDOM creates XML::DOM document structures (i.e. XML::DOM::Document) from\nPerlSAX events.\n\nThis class used to be called XML::PerlSAX::DOM prior to libxml-enno 1.0.1.\n\nCONSTRUCTOR OPTIONS\nThe XML::Handler::BuildDOM constructor supports the following options:\n\n*   KeepCDATA => 1\n\nIf set to 0 (default), CDATASections will be converted to regular text.\n\n*   Document => $doc\n\nIf undefined, startdocument will extract it from Element or DocType (if set), otherwise it\nwill create a new XML::DOM::Document.\n\n*   Element => $elem\n\nIf undefined, it is set to Document. This will be the insertion point (or parent) for the\nnodes defined by the following callbacks.\n\n*   DocType => $doctype\n\nIf undefined, startdocument will extract it from Document (if possible). Otherwise it adds\na new XML::DOM::DocumentType to the Document.\n",
            "subsections": []
        }
    },
    "summary": "XML::Handler::BuildDOM - PerlSAX handler that creates XML::DOM document structures",
    "flags": [],
    "examples": [],
    "see_also": []
}