Class REXML::Light::Node
In: src/rexml/light/node.rb
Parent: Array

Represents a tagged XML element. Elements are characterized by having children, attributes, and names, and can themselves be children.

Methods
<<    =~    []    []=    children    each    el!    has_name?    local_name    local_name=    name    name=    namespace    namespace=    new    node_type    parent    parent=    prefix    root    size    text=    to_s   
External Aliases
[] -> _old_get
_old_put -> :
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!()