{
    "content": [
        {
            "type": "text",
            "text": "# XML::LibXML::Literal (perldoc)\n\n## NAME\n\nXML::LibXML::Literal - Simple string values.\n\n## DESCRIPTION\n\nIn XPath terms a Literal is what we know as a string.\n\n## Sections\n\n- **NAME**\n- **DESCRIPTION**\n- **API**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "XML::LibXML::Literal",
        "section": "",
        "mode": "perldoc",
        "summary": "XML::LibXML::Literal - Simple string values.",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "API",
                "lines": 18,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "XML::LibXML::Literal - Simple string values.\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "In XPath terms a Literal is what we know as a string.\n",
                "subsections": []
            },
            "API": {
                "content": "new($string)\nCreate a new Literal object with the value in $string. Note that &quot; and &apos; will be\nconverted to \" and ' respectively. That is not part of the XPath specification, but I consider\nit useful. Note though that you have to go to extraordinary lengths in an XML template file (be\nit XSLT or whatever) to make use of this:\n\n<xsl:value-of select=\"&quot;I'm feeling &amp;quot;sad&amp;quot;&quot;\"/>\n\nWhich produces a Literal of:\n\nI'm feeling \"sad\"\n\nvalue()\nAlso overloaded as stringification, simply returns the literal string value.\n\ncmp($literal)\nReturns the equivalent of perl's cmp operator against the given $literal.\n",
                "subsections": []
            }
        }
    }
}