Class: REXML::Element

Class REXML::Element |
In: | rexml/element.rb
Parent: | Parent

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

Methods

add_attribute add_attributes add_element add_namespace add_text clone delete_attribute delete_element delete_namespace each_element each_element_with_attribute each_element_with_text get_elements get_text has_attributes? has_elements? has_text? namespace new next_element parse_stream prefixes previous_element raw root text text= whitespace write

Attributes

:attributes | [R] | Mechanisms for accessing attributes and child elements of this element.
:context | [RW] | The context holds information about the processing environment, such as whitespace handling.
:elements | [R] | Mechanisms for accessing attributes and child elements of this element.

Included modules

Namespace

Public Class methods

add_attribute%params%

add_attributes%params%

add_element%params%

add_namespace%params%

add_text%params%

clone%params%

delete_attribute%params%

delete_element%params%

delete_namespace%params%

each_element%params%

each_element_with_attribute%params%

each_element_with_text%params%

get_elements%params%

get_text%params%

has_attributes?%params%

has_elements?%params%

has_text?%params%

namespace%params%

new%params%

next_element%params%

parse_stream%params%

prefixes%params%

previous_element%params%

raw%params%

root%params%

text%params%

text=%params%

whitespace%params%

write%params%

Public Instance methods

add_attribute%params%

add_attributes%params%

add_element%params%

add_namespace%params%

add_text%params%

clone%params%

delete_attribute%params%

delete_element%params%

delete_namespace%params%

each_element%params%

each_element_with_attribute%params%

each_element_with_text%params%

get_elements%params%

get_text%params%

has_attributes?%params%

has_elements?%params%

has_text?%params%

namespace%params%

new%params%

next_element%params%

parse_stream%params%

prefixes%params%

previous_element%params%

raw%params%

root%params%

text%params%

text=%params%

whitespace%params%

write%params%