Class REXML::Light::Node |
|
Represents a tagged XML element. Elements are characterized by having children, attributes, and names, and can themselves be children.
Methods |
External Aliases |
Public Class methods |
new(node=nil) |
Create a new element.
Public Instance methods |
size() |
each( &block ) {| at(x+4 )| ...} |
name() |
name=( name_str, ns=nil ) |
parent=( node ) |
local_name() |
local_name=( name_str ) |
prefix( namespace=nil ) |
namespace( prefix=prefix() ) |
namespace=( namespace ) |
[]( reference, ns=nil ) |
=~( path ) |
[]=( reference, ns, value=nil ) |
Doesn‘t handle namespaces yet
<<(element) |
Append a child to this element, optionally under a provided namespace. The namespace argument is ignored if the element argument is an Element object. Otherwise, the element argument is a string, the namespace (if provided) is the namespace the element is created in.
node_type() |
text=( foo ) |
root() |
has_name?( name, namespace = '' ) |
children() |
parent() |
to_s() |
el!() |