{
    "mode": "perldoc",
    "parameter": "XML::Grove::Path",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AGrove%3A%3APath/json",
    "generated": "2026-06-12T23:50:18Z",
    "synopsis": "use XML::Grove::Path;\n# Using atpath method on XML::Grove::Document or XML::Grove::Element:\n$xmlobj = $groveobject->atpath(\"/some/path\");\n# Using an XML::Grove::Path instance:\n$pather = XML::Grove::Path->new();\n$xmlobj = $pather->atpath($groveobject);",
    "sections": {
        "NAME": {
            "content": "XML::Grove::Path - return the object at a path\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use XML::Grove::Path;\n\n# Using atpath method on XML::Grove::Document or XML::Grove::Element:\n$xmlobj = $groveobject->atpath(\"/some/path\");\n\n# Using an XML::Grove::Path instance:\n$pather = XML::Grove::Path->new();\n$xmlobj = $pather->atpath($groveobject);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "\"XML::Grove::Path\" returns XML objects located at paths. Paths are strings of element names or\nXML object types separated by slash (\"/\") characters. Paths must always start at the grove\nobject passed to `\"atpath()\"'. \"XML::Grove::Path\" is not XPath, but it should become obsolete\nwhen an XPath implementation is available.\n\nPaths are like URLs\n\n/html/body/ul/li[4]\n/html/body/#pi[2]\n\nThe path segments can be element names or object types, the objects types are named using:\n\n#element\n#pi\n#comment\n#text\n#cdata\n#any\n\nThe `\"#any\"' object type matches any type of object, it is essentially an index into the\ncontents of the parent object.\n\nThe `\"#text\"' object type treats text objects as if they are not normalized. Two consecutive\ntext objects are separate text objects.\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"
                }
            ]
        }
    },
    "summary": "XML::Grove::Path - return the object at a path",
    "flags": [],
    "examples": [],
    "see_also": []
}