{
    "content": [
        {
            "type": "text",
            "text": "# XML::XPathEngine::NodeSet (perldoc)\n\n## NAME\n\nXML::XPathEngine::NodeSet - a list of XML document nodes\n\n## SYNOPSIS\n\nmy $results = $xp->find('//someelement');\nif (!$results->isa('XML::XPathEngine::NodeSet')) {\nprint \"Found $results\\n\";\nexit;\n}\nforeach my $context ($results->getnodelist) {\nmy $newresults = $xp->find('./other/element', $context);\n...\n}\n\n## DESCRIPTION\n\nAn XML::XPathEngine::NodeSet object contains an ordered list of nodes. The nodes each take the\nsame format as described in XML::XPathEngine::XMLParser.\n\n## Sections\n\n- **NAME**\n- **DESCRIPTION**\n- **SYNOPSIS**\n- **API**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "XML::XPathEngine::NodeSet",
        "section": "",
        "mode": "perldoc",
        "summary": "XML::XPathEngine::NodeSet - a list of XML document nodes",
        "synopsis": "my $results = $xp->find('//someelement');\nif (!$results->isa('XML::XPathEngine::NodeSet')) {\nprint \"Found $results\\n\";\nexit;\n}\nforeach my $context ($results->getnodelist) {\nmy $newresults = $xp->find('./other/element', $context);\n...\n}",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 10,
                "subsections": []
            },
            {
                "name": "API",
                "lines": 40,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "XML::XPathEngine::NodeSet - a list of XML document nodes\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "An XML::XPathEngine::NodeSet object contains an ordered list of nodes. The nodes each take the\nsame format as described in XML::XPathEngine::XMLParser.\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "my $results = $xp->find('//someelement');\nif (!$results->isa('XML::XPathEngine::NodeSet')) {\nprint \"Found $results\\n\";\nexit;\n}\nforeach my $context ($results->getnodelist) {\nmy $newresults = $xp->find('./other/element', $context);\n...\n}\n",
                "subsections": []
            },
            "API": {
                "content": "new()\nYou will almost never have to create a new NodeSet object, as it is all done for you by XPath.\n\ngetnodelist()\nReturns a list of nodes. See XML::XPathEngine::XMLParser for the format of the nodes.\n\nstringvalue()\nReturns the string-value of the first node in the list. See the XPath specification for what\n\"string-value\" means.\n\nstringvalues()\nReturns a list of the string-values of all the nodes in the list.\n\ntoliteral()\nReturns the concatenation of all the string-values of all the nodes in the list.\n\ngetnode($pos)\nReturns the node at $pos. The node position in XPath is based at 1, not 0.\n\nsize()\nReturns the number of nodes in the NodeSet.\n\npop()\nEquivalent to perl's pop function.\n\npush(@nodes)\nEquivalent to perl's push function.\n\nappend($nodeset)\nGiven a nodeset, appends the list of nodes in $nodeset to the end of the current list.\n\nshift()\nEquivalent to perl's shift function.\n\nunshift(@nodes)\nEquivalent to perl's unshift function.\n\nprepend($nodeset)\nGiven a nodeset, prepends the list of nodes in $nodeset to the front of the current list.\n",
                "subsections": []
            }
        }
    }
}