1XPath::Node::Element(3)User Contributed Perl DocumentatioXnPath::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 wierd,
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   getAttribute ( name )
31       Returns the attribute node with key name.
32
33   getAttributes / getAttributeNodes
34       Returns the attribute nodes. In list context returns a list. In scalar
35       context returns an array ref.
36
37   appendAttribute ( attrib_node)
38       Appends the attribute node to the list of attributes (XML::XPath stores
39       attributes in order).
40
41   getNamespace ( prefix )
42       Returns the namespace node by the given prefix
43
44   getNamespaces / getNamespaceNodes
45       Returns the namespace nodes. In list context returns a list. In scalar
46       context returns an array ref.
47
48   appendNamespace ( ns_node )
49       Appends the namespace node to the list of namespaces.
50
51   getPrefix
52       Returns the prefix of this element
53
54   getExpandedName
55       Returns the expanded name of this element (not yet implemented right).
56
57   string_value
58       For elements, the string_value is the concatenation of all
59       string_values of all text-descendants of the element node in document
60       order.
61
62   toString ( [ norecurse ] )
63       Output (and all children) the node to a string. Doesn't process
64       children if the norecurse option is a true value.
65
66
67
68perl v5.12.0                      2003-01-26           XPath::Node::Element(3)
Impressum