{
    "content": [
        {
            "type": "text",
            "text": "# XML::LibXML::Dtd (perldoc)\n\n## NAME\n\nXML::LibXML::Dtd - XML::LibXML DTD Handling\n\n## SYNOPSIS\n\nuse XML::LibXML;\n$dtd = XML::LibXML::Dtd->new($publicid, $systemid);\n$dtd = XML::LibXML::Dtd->parsestring($dtdstr);\n$publicId = $dtd->getName();\n$publicId = $dtd->publicId();\n$systemId = $dtd->systemId();\n\n## DESCRIPTION\n\nThis class holds a DTD. You may parse a DTD from either a string, or from an external SYSTEM\nidentifier.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **METHODS**\n- **AUTHORS**\n- **VERSION**\n- **COPYRIGHT**\n- **LICENSE**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "XML::LibXML::Dtd",
        "section": "",
        "mode": "perldoc",
        "summary": "XML::LibXML::Dtd - XML::LibXML DTD Handling",
        "synopsis": "use XML::LibXML;\n$dtd = XML::LibXML::Dtd->new($publicid, $systemid);\n$dtd = XML::LibXML::Dtd->parsestring($dtdstr);\n$publicId = $dtd->getName();\n$publicId = $dtd->publicId();\n$systemId = $dtd->systemId();",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 35,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "VERSION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "LICENSE",
                "lines": 3,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "XML::LibXML::Dtd - XML::LibXML DTD Handling\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use XML::LibXML;\n\n$dtd = XML::LibXML::Dtd->new($publicid, $systemid);\n$dtd = XML::LibXML::Dtd->parsestring($dtdstr);\n$publicId = $dtd->getName();\n$publicId = $dtd->publicId();\n$systemId = $dtd->systemId();\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This class holds a DTD. You may parse a DTD from either a string, or from an external SYSTEM\nidentifier.\n\nNo support is available as yet for parsing from a filehandle.\n\nXML::LibXML::Dtd is a sub-class of XML::LibXML::Node, so all the methods available to nodes\n(particularly toString()) are available to Dtd objects.\n",
                "subsections": []
            },
            "METHODS": {
                "content": "new\n$dtd = XML::LibXML::Dtd->new($publicid, $systemid);\n\nParse a DTD from the system identifier, and return a DTD object that you can pass to\n$doc->isvalid() or $doc->validate().\n\nmy $dtd = XML::LibXML::Dtd->new(\n\"SOME // Public / ID / 1.0\",\n\"test.dtd\"\n);\nmy $doc = XML::LibXML->new->parsefile(\"test.xml\");\n$doc->validate($dtd);\n\nparsestring\n$dtd = XML::LibXML::Dtd->parsestring($dtdstr);\n\nThe same as new() above, except you can parse a DTD from a string. Note that parsing from\nstring may fail if the DTD contains external parametric-entity references with relative\nURLs.\n\ngetName\n$publicId = $dtd->getName();\n\nReturns the name of DTD; i.e., the name immediately following the DOCTYPE keyword.\n\npublicId\n$publicId = $dtd->publicId();\n\nReturns the public identifier of the external subset.\n\nsystemId\n$systemId = $dtd->systemId();\n\nReturns the system identifier of the external subset.\n",
                "subsections": []
            },
            "AUTHORS": {
                "content": "Matt Sergeant, Christian Glahn, Petr Pajas\n",
                "subsections": []
            },
            "VERSION": {
                "content": "2.0134\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "2001-2007, AxKit.com Ltd.\n\n2002-2006, Christian Glahn.\n\n2006-2009, Petr Pajas.\n",
                "subsections": []
            },
            "LICENSE": {
                "content": "This program is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself.\n",
                "subsections": []
            }
        }
    }
}