{
    "content": [
        {
            "type": "text",
            "text": "# XML::DOM::CharacterData (perldoc)\n\n## NAME\n\nXML::DOM::CharacterData - Common interface for Text, CDATASections and Comments\n\n## DESCRIPTION\n\nXML::DOM::CharacterData extends XML::DOM::Node\n\n## Sections\n\n- **NAME**\n- **DESCRIPTION**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "XML::DOM::CharacterData",
        "section": "",
        "mode": "perldoc",
        "summary": "XML::DOM::CharacterData - Common interface for Text, CDATASections and Comments",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 57,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "XML::DOM::CharacterData - Common interface for Text, CDATASections and Comments\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "XML::DOM::CharacterData extends XML::DOM::Node\n\nThe CharacterData interface extends Node with a set of attributes and methods for accessing\ncharacter data in the DOM. For clarity this set is defined here rather than on each object that\nuses these attributes and methods. No DOM objects correspond directly to CharacterData, though\nText, Comment and CDATASection do inherit the interface from it. All offsets in this interface\nstart from 0.\n\nMETHODS\ngetData and setData (data)\nThe character data of the node that implements this interface. The DOM implementation may\nnot put arbitrary limits on the amount of data that may be stored in a CharacterData node.\nHowever, implementation limits may mean that the entirety of a node's data may not fit into\na single DOMString. In such cases, the user may call substringData to retrieve the data in\nappropriately sized pieces.\n\ngetLength\nThe number of characters that are available through data and the substringData method below.\nThis may have the value zero, i.e., CharacterData nodes may be empty.\n\nsubstringData (offset, count)\nExtracts a range of data from the node.\n\nParameters: *offset* Start offset of substring to extract. *count* The number of characters\nto extract.\n\nReturn Value: The specified substring. If the sum of offset and count exceeds the length,\nthen all characters to the end of the data are returned.\n\nappendData (str)\nAppends the string to the end of the character data of the node. Upon success, data provides\naccess to the concatenation of data and the DOMString specified.\n\ninsertData (offset, arg)\nInserts a string at the specified character offset.\n\nParameters: *offset* The character offset at which to insert. *arg* The DOMString to insert.\n\ndeleteData (offset, count)\nRemoves a range of characters from the node. Upon success, data and length reflect the\nchange. If the sum of offset and count exceeds length then all characters from offset to the\nend of the data are deleted.\n\nParameters: *offset* The offset from which to remove characters. *count* The number of\ncharacters to delete.\n\nreplaceData (offset, count, arg)\nReplaces the characters starting at the specified character offset with the specified\nstring.\n\nParameters: *offset* The offset from which to start replacing. *count* The number of\ncharacters to replace. *arg* The DOMString with which the range must be replaced.\n\nIf the sum of offset and count exceeds length, then all characters to the end of the data\nare replaced (i.e., the effect is the same as a remove method call with the same range,\nfollowed by an append method invocation).\n",
                "subsections": []
            }
        }
    }
}