{
    "mode": "perldoc",
    "parameter": "CGI::XML",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/CGI%3A%3AXML/json",
    "generated": "2026-06-12T11:28:19Z",
    "synopsis": "use CGI::XML;\n$q = new CGI::XML;\n# convert CGI.pm variables to XML\n$xml = $q->toXML;\n$xml = $q->toXML($root);\n# convert XML to CGI.pm variables\n$q->toCGI($xml);",
    "sections": {
        "NAME": {
            "content": "CGI::XML - Perl extension for converting CGI.pm variables to/from XML\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use CGI::XML;\n$q = new CGI::XML;\n\n# convert CGI.pm variables to XML\n$xml = $q->toXML;\n$xml = $q->toXML($root);\n\n# convert XML to CGI.pm variables\n$q->toCGI($xml);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The CGI::XML module converts CGI.pm variables to XML and vice versa.\n\nCGI::XML is a subclass of CGI.pm, so it reads the CGI variables just as CGI.pm would.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "$q = new CGI::XML\ncreates a new instance of CGI::XML. You also have access to all of the methods in CGI.pm.\n\n$q->toXML([$root])\nwhere $root is an optional parameter that specifies the root element. By default, toXML will\nnot return a root element.\n\n$q->toCGI($xml)\nwhere $xml is the XML you would like to convert to CGI.pm parameters. Values in the XML will\noverwrite any existing values if they exist.\n",
            "subsections": []
        },
        "NOTE": {
            "content": "CGI::XML does not currently handle multiple selections passed from HTML forms. This will be\nadded in a future release.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Jonathan Eisenzopf <eisen@pobox.com>\n",
            "subsections": []
        },
        "CONTRIBUTORS": {
            "content": "David Black <dblack@candle.superlink.net>\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "",
            "subsections": [
                {
                    "name": "perl",
                    "content": ""
                }
            ]
        }
    },
    "summary": "CGI::XML - Perl extension for converting CGI.pm variables to/from XML",
    "flags": [],
    "examples": [],
    "see_also": []
}