-
Method get_line_no
int Public.Parser.XML2.Node()->get_line_no()
- Returns
the line number the node is present on
-
Method get_text
string Public.Parser.XML2.Node()->get_text()
- Description
gets the contents of a text node, or the contents and children of an
element.
-
Method get_ns
string Public.Parser.XML2.Node()->get_ns()
- Description
returns the default name space uri for the element
-
Method get_nss
mapping Public.Parser.XML2.Node()->get_nss()
- Description
gets a list of all known namespaces for this element.
- Returns
a mapping of "short" prefixes to namespace uris.
-
Method get_attributes
mapping Public.Parser.XML2.Node()->get_attributes()
- Description
returns all attributes, irrespective of namespace
- Returns
a mapping of attribute name to attribute value.
-
Method get_ns_attributes
mapping Public.Parser.XML2.Node()->get_ns_attributes(string ns_prefix)
- Description
given a namespace uri, return all elements for that namespace
present in the element.
- Returns
a mapping of attribute names to attribute values.
-
Method children
array(object(Node)) Public.Parser.XML2.Node()->children()
- Description
get all children of this node
- Returns
an array of all elements with are a direct child of this element.
-
Method parent
object(Node) Public.Parser.XML2.Node()->parent()
- Description
get the Node which is the parent of this Node.
-
Method next
object(Node) Public.Parser.XML2.Node()->next()
- Description
get the next sibling of this Node.
- Returns
the next node which is a sibling of this node.
-
Method prev
object(Node) Public.Parser.XML2.Node()->prev()
- Description
get the previous sibling of this Node.
- Returns
the previous node which is a sibling of this node.
-
Method get_node_name
string Public.Parser.XML2.Node()->get_node_name()
- Description
gets the name of this node, if it has one.
|