{
    "mode": "perldoc",
    "parameter": "XML::Handler::CanonXMLWriter",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AHandler%3A%3ACanonXMLWriter/json",
    "generated": "2026-06-14T05:26:12Z",
    "synopsis": "use XML::Handler::CanonXMLWriter;\n$writer = XML::Handler::CanonXMLWriter OPTIONS;\n$parser->parse(Handler => $writer);",
    "sections": {
        "NAME": {
            "content": "XML::Handler::CanonXMLWriter - output XML in canonical XML format\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use XML::Handler::CanonXMLWriter;\n\n$writer = XML::Handler::CanonXMLWriter OPTIONS;\n$parser->parse(Handler => $writer);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "\"XML::Handler::CanonXMLWriter\" is a PerlSAX handler that will return a string or write a stream\nof canonical XML for an XML instance and it's content.\n\n\"XML::Handler::CanonXMLWriter\" objects hold the options used for writing the XML objects.\nOptions can be supplied when the the object is created,\n\n$writer = new XML::Handler::CanonXMLWriter PrintComments => 1;\n\nor modified at any time before calling the parser's `\"parse()\"' method:\n\n$writer->{PrintComments} = 0;\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "IOHandle\nIOHandle contains a handle for writing the canonical XML to. If an IOHandle is not provided,\nthe canonical XML string will be returned from `\"parse()\"'.\n\nPrintComments\nBy default comments are not written to the output. Setting comment to a true value will\ninclude comments in the output.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Ken MacLeod, ken@bitsko.slc.ut.us\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "",
            "subsections": [
                {
                    "name": "perl",
                    "content": "James Clark's Canonical XML definition <http://www.jclark.com/xml/canonxml.html>\n"
                }
            ]
        }
    },
    "summary": "XML::Handler::CanonXMLWriter - output XML in canonical XML format",
    "flags": [],
    "examples": [],
    "see_also": []
}