{
    "content": [
        {
            "type": "text",
            "text": "# XML::XPath::PerlSAX (perldoc)\n\n## NAME\n\nXML::XPath::PerlSAX - A PerlSAX event generator for my weird node structure\n\n## SYNOPSIS\n\nuse XML::XPath;\nuse XML::XPath::PerlSAX;\nuse XML::DOM::PerlSAX;\nmy $xp = XML::XPath->new(filename => 'test.xhtml');\nmy $paras = $xp->find('/html/body/p');\nmy $handler = XML::DOM::PerlSAX->new();\nmy $generator = XML::XPath::PerlSAX->new( Handler => $handler );\nforeach my $node ($paras->getnodelist) {\nmy $domtree = $generator->parse($node);\n# do something with $domtree\n}\n\n## DESCRIPTION\n\nThis module generates PerlSAX events to pass to a PerlSAX handler such as XML::DOM::PerlSAX. It\noperates specifically on my weird tree format.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **Other**\n- **LICENSE AND COPYRIGHT**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "XML::XPath::PerlSAX",
        "section": "",
        "mode": "perldoc",
        "summary": "XML::XPath::PerlSAX - A PerlSAX event generator for my weird node structure",
        "synopsis": "use XML::XPath;\nuse XML::XPath::PerlSAX;\nuse XML::DOM::PerlSAX;\nmy $xp = XML::XPath->new(filename => 'test.xhtml');\nmy $paras = $xp->find('/html/body/p');\nmy $handler = XML::DOM::PerlSAX->new();\nmy $generator = XML::XPath::PerlSAX->new( Handler => $handler );\nforeach my $node ($paras->getnodelist) {\nmy $domtree = $generator->parse($node);\n# do something with $domtree\n}",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 15,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "Other",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "LICENSE AND COPYRIGHT",
                "lines": 4,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "XML::XPath::PerlSAX - A PerlSAX event generator for my weird node structure\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use XML::XPath;\nuse XML::XPath::PerlSAX;\nuse XML::DOM::PerlSAX;\n\nmy $xp = XML::XPath->new(filename => 'test.xhtml');\nmy $paras = $xp->find('/html/body/p');\n\nmy $handler = XML::DOM::PerlSAX->new();\nmy $generator = XML::XPath::PerlSAX->new( Handler => $handler );\n\nforeach my $node ($paras->getnodelist) {\nmy $domtree = $generator->parse($node);\n# do something with $domtree\n}\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This module generates PerlSAX events to pass to a PerlSAX handler such as XML::DOM::PerlSAX. It\noperates specifically on my weird tree format.\n\nUnfortunately SAX doesn't seem to cope with namespaces, so these are lost completely. I believe\nSAX2 is doing namespaces.\n",
                "subsections": []
            },
            "Other": {
                "content": "The XML::DOM::PerlSAX handler I tried was completely broken (didn't even compile before I\npatched it a bit), so I don't know how correct this is or how far it will work.\n",
                "subsections": []
            },
            "LICENSE AND COPYRIGHT": {
                "content": "This module is copyright 2000 AxKit.com Ltd. This is free software, and as such comes with NO\nWARRANTY. No dates are used in this module. You may distribute this module under the terms of\neither the Gnu GPL, or the Artistic License (the same terms as Perl itself).\n",
                "subsections": []
            }
        }
    }
}