1XML::XPath::Node::ElemeUnste(r3)Contributed Perl DocumenXtMaLt:i:oXnPath::Node::Element(3)
2
3
4

NAME

6       Element - an <element>
7

API

9   new ( name, prefix )
10       Create a new Element node with name "name" and prefix "prefix". The
11       name be "prefix:local" if prefix is defined. I know that sounds weird,
12       but it works ;-)
13
14   getName
15       Returns the name (including "prefix:" if defined) of this element.
16
17   getLocalName
18       Returns just the local part of the name (the bit after "prefix:").
19
20   getChildNodes
21       Returns the children of this element. In list context returns a list.
22       In scalar context returns an array ref.
23
24   getChildNode ( pos )
25       Returns the child at position pos.
26
27   appendChild ( childnode )
28       Appends the child node to the list of current child nodes.
29
30   removeChild ( childnode )
31       Removes the supplied child node from the list of current child nodes.
32
33   getAttribute ( name )
34       Returns the attribute node with key name.
35
36   getAttributes / getAttributeNodes
37       Returns the attribute nodes. In list context returns a list. In scalar
38       context returns an array ref.
39
40   appendAttribute ( attrib_node)
41       Appends the attribute node to the list of attributes (XML::XPath stores
42       attributes in order).
43
44   getNamespace ( prefix )
45       Returns the namespace node by the given prefix
46
47   getNamespaces / getNamespaceNodes
48       Returns the namespace nodes. In list context returns a list. In scalar
49       context returns an array ref.
50
51   appendNamespace ( ns_node )
52       Appends the namespace node to the list of namespaces.
53
54   getPrefix
55       Returns the prefix of this element
56
57   getExpandedName
58       Returns the expanded name of this element (not yet implemented right).
59
60   string_value
61       For elements, the string_value is the concatenation of all
62       string_values of all text-descendants of the element node in document
63       order.
64
65   toString ( [ norecurse ] )
66       Output (and all children) the node to a string. Doesn't process
67       children if the norecurse option is a true value.
68
69
70
71perl v5.32.1                      2021-01-27      XML::XPath::Node::Element(3)
Impressum