- :element, parent, name, attributes, children*
-
a = Node.new a << “B” # => <a>B a.b
# => <a>B a.b[1] # =>
<a>B a.b[1][“x”] = “y” # =>
<a>B<b x=“y”/> a.b[0].c # =>
<a>B<c/><b x=“y”/> a.b.c << “D”
# => <a>B<c>D</c><b x=“y”/>
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.
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
Version = VERSION
Copyright = COPYRIGHT
REVISION = %w$Revision$[1] || ''
VERSION = "3.1.7.3"
DATE = "2008/019"
COPYRIGHT = "Copyright © 2001-2008 Sean Russell "
Attributes
Show files where this module is defined (50 files)
lib/rexml/parseexception.rb
lib/rexml/security.rb
lib/rexml/functions.rb
lib/rexml/text.rb
lib/rexml/parent.rb
lib/rexml/streamlistener.rb
lib/rexml/source.rb
lib/rexml/instruction.rb
lib/rexml/xpath_parser.rb
lib/rexml/rexml.rb
lib/rexml/quickpath.rb
lib/rexml/attribute.rb
lib/rexml/validation/relaxng.rb
lib/rexml/validation/validation.rb
lib/rexml/validation/validationexception.rb
lib/rexml/sax2listener.rb
lib/rexml/syncenumerator.rb
lib/rexml/output.rb
lib/rexml/document.rb
lib/rexml/attlistdecl.rb
lib/rexml/formatters/default.rb
lib/rexml/formatters/transitive.rb
lib/rexml/formatters/pretty.rb
lib/rexml/child.rb
lib/rexml/cdata.rb
lib/rexml/undefinednamespaceexception.rb
lib/rexml/comment.rb
lib/rexml/xpath.rb
lib/rexml/light/node.rb
lib/rexml/dtd/dtd.rb
lib/rexml/dtd/elementdecl.rb
lib/rexml/dtd/attlistdecl.rb
lib/rexml/dtd/notationdecl.rb
lib/rexml/dtd/entitydecl.rb
lib/rexml/encoding.rb
lib/rexml/namespace.rb
lib/rexml/node.rb
lib/rexml/parsers/xpathparser.rb
lib/rexml/parsers/baseparser.rb
lib/rexml/parsers/lightparser.rb
lib/rexml/parsers/ultralightparser.rb
lib/rexml/parsers/sax2parser.rb
lib/rexml/parsers/treeparser.rb
lib/rexml/parsers/pullparser.rb
lib/rexml/parsers/streamparser.rb
lib/rexml/element.rb
lib/rexml/xmltokens.rb
lib/rexml/entity.rb
lib/rexml/xmldecl.rb
lib/rexml/doctype.rb