Type:
Module
Constants:
COPYRIGHT : "Copyright © 2001-2008 Sean Russell <ser@germane-software.com>"
DATE : "2008/019"
VERSION : "3.1.7.3"
REVISION : %w$Revision$[1] || ''
Copyright : COPYRIGHT
Version : VERSION
:element, parent, name, attributes, children*

a = Node.new a << “B” # => <a>B</a> a.b # => <a>B<b/></a> a.b # => <a>B<b/><b/><a> a.b[“x”] = “y” # => <a>B<b/><b x=“y”/></a> a.b.c # => <a>B<c/><b x=“y”/></a> a.b.c << “D” # => <a>B<c>D</c><b x=“y”/></a>

REXML is an XML toolkit for Ruby, in Ruby.

REXML is a pure Ruby, XML 1.0 conforming, non-validating toolkit with an intuitive API. REXML passes 100% of the non-validating Oasis tests, and provides tree, stream, SAX2, pull, and lightweight APIs. REXML also includes a full XPath 1.0 implementation. Since Ruby 1.8, REXML is included in the standard Ruby distribution.

Main page

www.germane-software.com/software/rexml

Author

Sean Russell <serATgermaneHYPHENsoftwareDOTcom>

Date

2008/019

Version

3.1.7.3

This API documentation can be downloaded from the REXML home page, or can be accessed online

A tutorial is available in the REXML distribution in docs/tutorial.html, or can be accessed online

new
  • References/Ruby on Rails/Ruby/Classes/REXML/REXML::Entity

new(stream, value=nil, parent=nil, reference=false) Class Public methods Create

2025-01-10 15:47:30
[]=
  • References/Ruby on Rails/Ruby/Classes/REXML/REXML::Attributes

[]=( name, value ) Instance Public methods Sets an attribute, overwriting any

2025-01-10 15:47:30
delete_element
  • References/Ruby on Rails/Ruby/Classes/REXML/REXML::Element

delete_element(element) Instance Public methods Deletes a child element.

2025-01-10 15:47:30
delete_all
  • References/Ruby on Rails/Ruby/Classes/REXML/REXML::Attributes

delete_all( name ) Instance Public methods Deletes all attributes matching a

2025-01-10 15:47:30
single?
  • References/Ruby on Rails/Ruby/Classes/REXML/REXML::Validation/REXML::Validation::Event

single?() Instance Public methods

2025-01-10 15:47:30
to_s
  • References/Ruby on Rails/Ruby/Classes/REXML/REXML::DTD/REXML::DTD::EntityDecl

to_s() Instance Public methods

2025-01-10 15:47:30
to_s
  • References/Ruby on Rails/Ruby/Classes/REXML/REXML::Node

to_s(indent=nil) Instance Public methods indent DEPRECATED

2025-01-10 15:47:30
entitydecl
  • References/Ruby on Rails/Ruby/Classes/REXML/REXML::SAX2Listener

entitydecl(name, decl) Instance Public methods <!ENTITY â¦> The argument

2025-01-10 15:47:30
add_attribute
  • References/Ruby on Rails/Ruby/Classes/REXML/REXML::Element

add_attribute( key, value=nil ) Instance Public methods Adds an attribute to

2025-01-10 15:47:30
number
  • References/Ruby on Rails/Ruby/Classes/REXML/REXML::Functions

number( object=nil ) Class Public methods a string that consists of optional

2025-01-10 15:47:30