Module: REXML

Defined in:
lib/rexml/rexml.rb,
lib/rexml/node.rb,
lib/rexml/text.rb,
lib/rexml/xpath.rb,
lib/rexml/cdata.rb,
lib/rexml/child.rb,
lib/rexml/output.rb,
lib/rexml/parent.rb,
lib/rexml/source.rb,
lib/rexml/entity.rb,
lib/rexml/xmldecl.rb,
lib/rexml/doctype.rb,
lib/rexml/comment.rb,
lib/rexml/dtd/dtd.rb,
lib/rexml/element.rb,
lib/rexml/document.rb,
lib/rexml/encoding.rb,
lib/rexml/functions.rb,
lib/rexml/namespace.rb,
lib/rexml/xmltokens.rb,
lib/rexml/attribute.rb,
lib/rexml/quickpath.rb,
lib/rexml/light/node.rb,
lib/rexml/instruction.rb,
lib/rexml/attlistdecl.rb,
lib/rexml/xpath_parser.rb,
lib/rexml/sax2listener.rb,
lib/rexml/syncenumerator.rb,
lib/rexml/streamlistener.rb,
lib/rexml/parseexception.rb,
lib/rexml/dtd/entitydecl.rb,
lib/rexml/dtd/attlistdecl.rb,
lib/rexml/encodings/UNILE.rb,
lib/rexml/encodings/UTF-8.rb,
lib/rexml/dtd/elementdecl.rb,
lib/rexml/encodings/ICONV.rb,
lib/rexml/dtd/notationdecl.rb,
lib/rexml/encodings/UTF-16.rb,
lib/rexml/encodings/EUC-JP.rb,
lib/rexml/formatters/pretty.rb,
lib/rexml/encodings/CP-1252.rb,
lib/rexml/validation/relaxng.rb,
lib/rexml/encodings/US-ASCII.rb,
lib/rexml/parsers/treeparser.rb,
lib/rexml/parsers/pullparser.rb,
lib/rexml/parsers/sax2parser.rb,
lib/rexml/parsers/baseparser.rb,
lib/rexml/formatters/default.rb,
lib/rexml/parsers/lightparser.rb,
lib/rexml/encodings/SHIFT-JIS.rb,
lib/rexml/parsers/xpathparser.rb,
lib/rexml/parsers/streamparser.rb,
lib/rexml/encodings/ISO-8859-1.rb,
lib/rexml/formatters/transitive.rb,
lib/rexml/encodings/ISO-8859-15.rb,
lib/rexml/validation/validation.rb,
lib/rexml/parsers/ultralightparser.rb,
lib/rexml/undefinednamespaceexception.rb,
lib/rexml/validation/validationexception.rb

Overview

This class was contributed by Mikko Tiihonen mikko DOT tiihonen AT hut DOT fi

Defined Under Namespace

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

Constant Summary collapse

"Copyright \xC2\xA9 2001-2006 Sean Russell <[email protected]>"
VERSION =
"3.1.7.3"
DATE =
"2007/275"
REVISION =
"$Revision: 22840 $".gsub(/\$Revision:|\$/,'').strip
COPYRIGHT
Version =
VERSION
@@namespaces =

An implementation note about namespaces: As we parse, when we find namespaces we put them in a hash and assign them a unique ID. We then convert the namespace prefix for the node to the unique ID. This makes namespace lookup much faster for the cost of extra memory use. We save the namespace prefix for the context node and convert it back when we write it.

{}