Class: REXML::Light::Node

# REXML::Light::Node (Class)

In: | temp/light/node.rb
Parent: | Object

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

## Methods

<< =~ [] []= children each has_name? local_name local_name= name name= namespace namespace= new node_type parent parent= prefix root size text= to_s

## Constants

NAMESPLIT | = | /^(?:(#{XMLTokens::NCNAME_STR}):)?(#{XMLTokens::NCNAME_STR})/u
PARENTS | = | [ :element, :document, :doctype ]

## Public Class methods

new(node=nil)

Create a new element.

## Public Instance methods

<<(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.

=~( path )
[]( reference, ns=nil )
[]=( reference, ns, value=nil )

Doesn‘t handle namespaces yet

children()
each( ) {|at(x+4 )| ...}
has_name?( name, namespace = '' )
local_name()
local_name=( name_str )
name()
name=( name_str, ns=nil )
namespace( prefix=prefix() )
namespace=( namespace )
node_type()
parent()
parent=( node )
prefix( namespace=nil )
root()
size()
text=( foo )
to_s()

[Validate]