{
    "mode": "perldoc",
    "parameter": "XML::Grove::AsCanonXML",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AGrove%3A%3AAsCanonXML/json",
    "generated": "2026-06-13T07:09:41Z",
    "synopsis": "use XML::Grove::AsCanonXML;\n# Using ascanonxml method on XML::Grove objects:\n$string = $xmlobject->ascanonxml( OPTIONS );\n# Using an XML::Grove::AsCanonXML instance:\n$writer = XML::Grove::AsCanonXML->new( OPTIONS );\n$string = $writer->ascanonxml($xmlobject);\n$writer->ascanonxml($xmlobject, $filehandle);",
    "sections": {
        "NAME": {
            "content": "XML::Grove::AsCanonXML - output XML objects in canonical XML\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use XML::Grove::AsCanonXML;\n\n# Using ascanonxml method on XML::Grove objects:\n$string = $xmlobject->ascanonxml( OPTIONS );\n\n# Using an XML::Grove::AsCanonXML instance:\n$writer = XML::Grove::AsCanonXML->new( OPTIONS );\n\n$string = $writer->ascanonxml($xmlobject);\n$writer->ascanonxml($xmlobject, $filehandle);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "\"XML::Grove::AsCanonXML\" will return a string or write a stream of canonical XML for an XML\nobject and it's content (if any).\n\n\"XML::Grove::AsCanonXML\" objects hold the options used for writing the XML objects. Options can\nbe supplied when the the object is created,\n\n$writer = XML::Grove::AsCanonXML->new( Comments => 1 );\n\nor modified at any time before writing an XML object by setting the option directly in the\n`$writer' hash.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "Comments\nBy default comments are not written to the output. Setting comment to TRUE will include\ncomments 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::Grove::AsCanonXML - output XML objects in canonical XML",
    "flags": [],
    "examples": [],
    "see_also": []
}