{
    "content": [
        {
            "type": "text",
            "text": "# XML::Grove::IDs (perldoc)\n\n## NAME\n\nXML::Grove::IDs - return an index of `id' attributes in a grove\n\n## SYNOPSIS\n\nuse XML::Grove::IDs;\n# Using getids method on XML::Grove::Document or XML::Grove::Element:\n$hash = $groveobject->getids($attrname, $elements);\n# Using an XML::Grove::IDs instance:\n$indexer = XML::Grove::IDs->new($attrname, $elements);\nmy $hash = {};\n$groveobject->accept($indexer, $hash);\n\n## DESCRIPTION\n\n\"XML::Grove::IDs\" returns a hash index of all nodes in a grove with an `id' attribute. The keys\nof the hash are the ID attribute value and the value at that key is the element. `$attrname'\nand `$elements' are optional. The attribute name defaults to `\"id\"' if `$attrname' is not\nsupplied. Indexing can be restricted to only certain elements, by name, by providing a hash\ncontaining NAME=>1 values.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **AUTHOR**\n- **SEE ALSO** (1 subsections)\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "XML::Grove::IDs",
        "section": "",
        "mode": "perldoc",
        "summary": "XML::Grove::IDs - return an index of `id' attributes in a grove",
        "synopsis": "use XML::Grove::IDs;\n# Using getids method on XML::Grove::Document or XML::Grove::Element:\n$hash = $groveobject->getids($attrname, $elements);\n# Using an XML::Grove::IDs instance:\n$indexer = XML::Grove::IDs->new($attrname, $elements);\nmy $hash = {};\n$groveobject->accept($indexer, $hash);",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 10,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 1,
                "subsections": [
                    {
                        "name": "perl",
                        "lines": 2
                    }
                ]
            }
        ],
        "sections": {
            "NAME": {
                "content": "XML::Grove::IDs - return an index of `id' attributes in a grove\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use XML::Grove::IDs;\n\n# Using getids method on XML::Grove::Document or XML::Grove::Element:\n$hash = $groveobject->getids($attrname, $elements);\n\n# Using an XML::Grove::IDs instance:\n$indexer = XML::Grove::IDs->new($attrname, $elements);\nmy $hash = {};\n$groveobject->accept($indexer, $hash);\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "\"XML::Grove::IDs\" returns a hash index of all nodes in a grove with an `id' attribute. The keys\nof the hash are the ID attribute value and the value at that key is the element. `$attrname'\nand `$elements' are optional. The attribute name defaults to `\"id\"' if `$attrname' is not\nsupplied. Indexing can be restricted to only certain elements, by name, by providing a hash\ncontaining NAME=>1 values.\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Ken MacLeod, ken@bitsko.slc.ut.us\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "",
                "subsections": [
                    {
                        "name": "perl",
                        "content": "Extensible Markup Language (XML) <http://www.w3c.org/XML>\n"
                    }
                ]
            }
        }
    }
}