Module: REXML (Ruby 2.3.7)
Description: Module : REXML - Ruby 2.3.7

- Home
- Core 2.3.7
- Std-lib 2.3.7
- Downloads

Support for the Ruby 2.3 series has ended. See here for reference.

### Home Classes Methods

### In Files

- rexml/attlistdecl.rb
- rexml/attribute.rb
- rexml/cdata.rb
- rexml/child.rb
- rexml/comment.rb
- rexml/doctype.rb
- rexml/document.rb
- rexml/dtd/attlistdecl.rb
- rexml/dtd/dtd.rb
- rexml/dtd/elementdecl.rb
- rexml/dtd/entitydecl.rb
- rexml/dtd/notationdecl.rb
- rexml/element.rb
- rexml/encoding.rb
- rexml/entity.rb
- rexml/formatters/default.rb
- rexml/formatters/pretty.rb
- rexml/formatters/transitive.rb
- rexml/functions.rb
- rexml/instruction.rb
- rexml/light/node.rb
- rexml/namespace.rb
- rexml/node.rb
- rexml/output.rb
- rexml/parent.rb
- rexml/parseexception.rb
- rexml/parsers/baseparser.rb
- rexml/parsers/lightparser.rb
- rexml/parsers/pullparser.rb
- rexml/parsers/sax2parser.rb
- rexml/parsers/streamparser.rb
- rexml/parsers/treeparser.rb
- rexml/parsers/ultralightparser.rb
- rexml/parsers/xpathparser.rb
- rexml/quickpath.rb
- rexml/rexml.rb
- rexml/sax2listener.rb
- rexml/security.rb
- rexml/source.rb
- rexml/streamlistener.rb
- rexml/syncenumerator.rb
- rexml/text.rb
- rexml/undefinednamespaceexception.rb
- rexml/validation/relaxng.rb
- rexml/validation/validation.rb
- rexml/validation/validationexception.rb
- rexml/xmldecl.rb
- rexml/xmltokens.rb
- rexml/xpath.rb
- rexml/xpath_parser.rb

### Namespace

- MODULE REXML::DTD
- MODULE REXML::Encoding
- MODULE REXML::EntityConst
- MODULE REXML::Formatters
- MODULE REXML::Functions
- MODULE REXML::Light
- MODULE REXML::Namespace
- MODULE REXML::Node
- MODULE REXML::Parsers
- MODULE REXML::SAX2Listener
- MODULE REXML::Security
- MODULE REXML::StreamListener
- MODULE REXML::Validation
- MODULE REXML::XMLTokens
- CLASS REXML::AttlistDecl
- CLASS REXML::Attribute
- CLASS REXML::Attributes
- CLASS REXML::CData
- CLASS REXML::Child
- CLASS REXML::Comment
- CLASS REXML::Declaration
- CLASS REXML::DocType
- CLASS REXML::Document
- CLASS REXML::Element
- CLASS REXML::ElementDecl
- CLASS REXML::Elements
- CLASS REXML::Entity
- CLASS REXML::ExternalEntity
- CLASS REXML::IOSource
- CLASS REXML::Instruction
- CLASS REXML::NotationDecl
- CLASS REXML::Output
- CLASS REXML::Parent
- CLASS REXML::ParseException
- CLASS REXML::QuickPath
- CLASS REXML::Source
- CLASS REXML::SourceFactory
- CLASS REXML::SyncEnumerator
- CLASS REXML::Text
- CLASS REXML::UndefinedNamespaceException
- CLASS REXML::XMLDecl
- CLASS REXML::XPath
- CLASS REXML::XPathParser

### Class/Module Index

Quicksearch

- Array
- Fixnum
- Float
- Object
- REXML
- REXML::AttlistDecl
- REXML::Attribute
- REXML::Attributes
- REXML::CData
- REXML::Child
- REXML::Comment
- REXML::DTD
- REXML::DTD::AttlistDecl
- REXML::DTD::ElementDecl
- REXML::DTD::EntityDecl
- REXML::DTD::NotationDecl
- REXML::DTD::Parser
- REXML::Declaration
- REXML::DocType
- REXML::Document
- REXML::Element
- REXML::ElementDecl
- REXML::Elements
- REXML::Encoding
- REXML::Entity
- REXML::EntityConst
- REXML::ExternalEntity
- REXML::Formatters
- REXML::Formatters::Default
- REXML::Formatters::Pretty
- REXML::Formatters::Transitive
- REXML::Functions
- REXML::IOSource
- REXML::Instruction
- REXML::Light
- REXML::Light::Node
- REXML::Namespace
- REXML::Node
- REXML::NotationDecl
- REXML::Output
- REXML::Parent
- REXML::ParseException
- REXML::Parsers
- REXML::Parsers::BaseParser
- REXML::Parsers::LightParser
- REXML::Parsers::PullEvent
- REXML::Parsers::PullParser
- REXML::Parsers::SAX2Parser
- REXML::Parsers::StreamParser
- REXML::Parsers::TreeParser
- REXML::Parsers::UltraLightParser
- REXML::Parsers::XPathParser
- REXML::QuickPath
- REXML::SAX2Listener
- REXML::Security
- REXML::Source
- REXML::SourceFactory
- REXML::StreamListener
- REXML::SyncEnumerator
- REXML::Text
- REXML::UndefinedNamespaceException
- REXML::Validation
- REXML::Validation::Choice
- REXML::Validation::Event
- REXML::Validation::Interleave
- REXML::Validation::OneOrMore
- REXML::Validation::Optional
- REXML::Validation::Ref
- REXML::Validation::RelaxNG
- REXML::Validation::Sequence
- REXML::Validation::State
- REXML::Validation::ValidationException
- REXML::Validation::Validator
- REXML::Validation::ZeroOrMore
- REXML::XMLDecl
- REXML::XMLTokens
- REXML::XPath
- REXML::XPathParser
- Symbol

No matching classes.

# REXML

: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

### Constants

COPYRIGHT
Copyright
DATE
REVISION
VERSION
Version