{
    "content": [
        {
            "type": "text",
            "text": "# XML::SAX::DocumentLocator (perldoc)\n\n## NAME\n\nXML::SAX::DocumentLocator - Helper class for document locators\n\n## SYNOPSIS\n\nmy $locator = XML::SAX::DocumentLocator->new(\nsub { $object->getpublicid },\nsub { $object->getsystemid },\nsub { $reader->currentline },\nsub { $reader->currentcolumn },\nsub { $reader->getencoding },\nsub { $reader->getxmlversion },\n);\n\n## DESCRIPTION\n\nThis module gives you a tied hash reference that calls the specified closures when asked for\nPublicId, SystemId, LineNumber and ColumnNumber.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **API**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "XML::SAX::DocumentLocator",
        "section": "",
        "mode": "perldoc",
        "summary": "XML::SAX::DocumentLocator - Helper class for document locators",
        "synopsis": "my $locator = XML::SAX::DocumentLocator->new(\nsub { $object->getpublicid },\nsub { $object->getsystemid },\nsub { $reader->currentline },\nsub { $reader->currentcolumn },\nsub { $reader->getencoding },\nsub { $reader->getxmlversion },\n);",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "API",
                "lines": 7,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "XML::SAX::DocumentLocator - Helper class for document locators\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "my $locator = XML::SAX::DocumentLocator->new(\nsub { $object->getpublicid },\nsub { $object->getsystemid },\nsub { $reader->currentline },\nsub { $reader->currentcolumn },\nsub { $reader->getencoding },\nsub { $reader->getxmlversion },\n);\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This module gives you a tied hash reference that calls the specified closures when asked for\nPublicId, SystemId, LineNumber and ColumnNumber.\n\nIt is useful for writing SAX Parsers so that you don't have to constantly update the line\nnumbers in a hash reference on the object you pass to setdocumentlocator(). See the source\ncode for XML::SAX::PurePerl for a usage example.\n",
                "subsections": []
            },
            "API": {
                "content": "There is only 1 method: \"new\". Simply pass it a list of closures that when called will return\nthe PublicId, the SystemId, the LineNumber, the ColumnNumber, the Encoding and the XMLVersion\nrespectively.\n\nThe closures are passed a single parameter, the key being requested. But you're free to ignore\nthat.\n",
                "subsections": []
            }
        }
    }
}