{
    "content": [
        {
            "type": "text",
            "text": "# XML::Parser::Style::Tree (perldoc)\n\n## NAME\n\nXML::Parser::Style::Tree - Tree style parser\n\n## SYNOPSIS\n\nuse XML::Parser;\nmy $p = XML::Parser->new(Style => 'Tree');\nmy $tree = $p->parsefile('foo.xml');\n\n## DESCRIPTION\n\nThis module implements XML::Parser's Tree style parser.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "XML::Parser::Style::Tree",
        "section": "",
        "mode": "perldoc",
        "summary": "XML::Parser::Style::Tree - Tree style parser",
        "synopsis": "use XML::Parser;\nmy $p = XML::Parser->new(Style => 'Tree');\nmy $tree = $p->parsefile('foo.xml');",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 19,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "XML::Parser::Style::Tree - Tree style parser\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use XML::Parser;\nmy $p = XML::Parser->new(Style => 'Tree');\nmy $tree = $p->parsefile('foo.xml');\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This module implements XML::Parser's Tree style parser.\n\nWhen parsing a document, \"parse()\" will return a parse tree for the document. Each node in the\ntree takes the form of a tag, content pair. Text nodes are represented with a pseudo-tag of \"0\"\nand the string that is their content. For elements, the content is an array reference. The first\nitem in the array is a (possibly empty) hash reference containing attributes. The remainder of\nthe array is a sequence of tag-content pairs representing the content of the element.\n\nSo for example the result of parsing:\n\n<foo><head id=\"a\">Hello <em>there</em></head><bar>Howdy<ref/></bar>do</foo>\n\nwould be: Tag Content ================================================================== [foo,\n[{}, head, [{id => \"a\"}, 0, \"Hello \", em, [{}, 0, \"there\"]], bar, [ {}, 0, \"Howdy\", ref, [{}]],\n0, \"do\" ] ]\n\nThe root document \"foo\", has 3 children: a \"head\" element, a \"bar\" element and the text \"do\".\nAfter the empty attribute hash, these are represented in it's contents by 3 tag-content pairs.\n",
                "subsections": []
            }
        }
    }
}