Module REXML
In: lib/xmpp4r/rexmladdons.rb
XMLTokens XPathParser Text IOSource Attribute Element lib/xmpp4r/rexmladdons.rb REXML Module: REXML

REXML module. This file only adds the following methods to the REXML module, to ease the coding:

  • replace_element_text
  • first_element
  • first_element_text
  • typed_add
  • import
  • self.import
  • delete_elements

Further definitions are just copied from REXML out of Ruby-1.8.4 to solve issues with REXML in Ruby-1.8.2.

The redefinitions of Text::normalize and Attribute#initialize address an issue where entities in element texts and attributes were not escaped. This modifies the behavious of REXML a bit but Sean Russell intends a similar behaviour for the future of REXML.

Classes and Modules

Class REXML::Attribute
Class REXML::Element
Class REXML::IOSource
Class REXML::Text
Class REXML::XPathParser

[Validate]