{
    "mode": "perldoc",
    "parameter": "XML::XPath::Node::Element",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/XML%3A%3AXPath%3A%3ANode%3A%3AElement/json",
    "generated": "2026-06-11T23:39:38Z",
    "sections": {
        "NAME": {
            "content": "Element - an <element>\n",
            "subsections": []
        },
        "API": {
            "content": "new ( name, prefix )\nCreate a new Element node with name \"name\" and prefix \"prefix\". The name be \"prefix:local\" if\nprefix is defined. I know that sounds weird, but it works ;-)\n\ngetName\nReturns the name (including \"prefix:\" if defined) of this element.\n\ngetLocalName\nReturns just the local part of the name (the bit after \"prefix:\").\n\ngetChildNodes\nReturns the children of this element. In list context returns a list. In scalar context returns\nan array ref.\n\ngetChildNode ( pos )\nReturns the child at position pos.\n\nappendChild ( childnode )\nAppends the child node to the list of current child nodes.\n\nremoveChild ( childnode )\nRemoves the supplied child node from the list of current child nodes.\n\ngetAttribute ( name )\nReturns the attribute node with key name.\n\ngetAttributes / getAttributeNodes\nReturns the attribute nodes. In list context returns a list. In scalar context returns an array\nref.\n\nappendAttribute ( attribnode)\nAppends the attribute node to the list of attributes (XML::XPath stores attributes in order).\n\ngetNamespace ( prefix )\nReturns the namespace node by the given prefix\n\ngetNamespaces / getNamespaceNodes\nReturns the namespace nodes. In list context returns a list. In scalar context returns an array\nref.\n\nappendNamespace ( nsnode )\nAppends the namespace node to the list of namespaces.\n\ngetPrefix\nReturns the prefix of this element\n\ngetExpandedName\nReturns the expanded name of this element (not yet implemented right).\n\nstringvalue\nFor elements, the stringvalue is the concatenation of all stringvalues of all text-descendants\nof the element node in document order.\n\ntoString ( [ norecurse ] )\nOutput (and all children) the node to a string. Doesn't process children if the norecurse option\nis a true value.\n",
            "subsections": []
        }
    },
    "summary": "Element - an <element>",
    "flags": [],
    "examples": [],
    "see_also": []
}