diff --git a/REXML/Attribute.html b/REXML/Attribute.html index 41161229..bd6cf85b 100644 --- a/REXML/Attribute.html +++ b/REXML/Attribute.html @@ -250,7 +250,7 @@
Returns a copy of this attribute
# File lib/rexml/attribute.rb, line 163 +# File lib/rexml/attribute.rb, line 164 def clone Attribute.new self end@@ -301,7 +301,7 @@Public Instance Methods
Returns this attribute
-# File lib/rexml/attribute.rb, line 171 +# File lib/rexml/attribute.rb, line 172 def element=( element ) @element = element @@ -353,7 +353,7 @@Public Instance Methods
-# File lib/rexml/attribute.rb, line 197 +# File lib/rexml/attribute.rb, line 198 def inspect rv = +"" write( rv ) @@ -427,7 +427,7 @@Public Instance Methods
-# File lib/rexml/attribute.rb, line 193 +# File lib/rexml/attribute.rb, line 194 def node_type :attribute end@@ -450,7 +450,7 @@Public Instance Methods
The normalized value of this attribute. That is, the attribute with entities intact.
-@@ -622,7 +623,7 @@# File lib/rexml/attribute.rb, line 157 +# File lib/rexml/attribute.rb, line 158 def normalized=(new_normalized) @normalized = new_normalized @unnormalized = nil @@ -512,7 +512,7 @@Public Instance Methods
This method is usually not called directly.
-# File lib/rexml/attribute.rb, line 184 +# File lib/rexml/attribute.rb, line 185 def remove @element.attributes.delete self.name unless @element.nil? end@@ -600,8 +600,9 @@Public Instance Methods
# File lib/rexml/attribute.rb, line 149 def value return @unnormalized if @unnormalized - @unnormalized = Text::unnormalize( @normalized, doctype ) - @unnormalized + + @unnormalized = Text::unnormalize(@normalized, doctype, + entity_expansion_text_limit: @element&.document&.entity_expansion_text_limit) endPublic Instance Methods
Writes this attribute (EG, puts ‘key=“value”’ to the output)
-# File lib/rexml/attribute.rb, line 189 +# File lib/rexml/attribute.rb, line 190 def write( output, indent=-1 ) output << to_string end@@ -645,7 +646,7 @@Public Instance Methods
-+# File lib/rexml/attribute.rb, line 203 +# File lib/rexml/attribute.rb, line 204 def xpath path = @element.xpath path += "/@#{self.expanded_name}" diff --git a/REXML/Document.html b/REXML/Document.html index 476afa92..d3ec17fe 100644 --- a/REXML/Document.html +++ b/REXML/Document.html @@ -155,6 +155,26 @@Attributes
+++++ entity_expansion_limit[W] ++ ++ +++@@ -180,7 +200,7 @@+ entity_expansion_text_limit[RW] ++ ++Public Class Methods
Deprecated. Use
REXML::Security.entity_expansion_limit=
instead.-# File lib/rexml/document.rb, line 415 +# File lib/rexml/document.rb, line 417 def Document::entity_expansion_limit return Security.entity_expansion_limit end@@ -205,7 +225,7 @@Public Class Methods
Deprecated. Use
REXML::Security.entity_expansion_limit=
instead.-# File lib/rexml/document.rb, line 408 +# File lib/rexml/document.rb, line 410 def Document::entity_expansion_limit=( val ) Security.entity_expansion_limit = val end@@ -230,7 +250,7 @@Public Class Methods
Deprecated. Use
REXML::Security.entity_expansion_text_limit
instead.-# File lib/rexml/document.rb, line 429 +# File lib/rexml/document.rb, line 431 def Document::entity_expansion_text_limit return Security.entity_expansion_text_limit end@@ -255,7 +275,7 @@Public Class Methods
Deprecated. Use
REXML::Security.entity_expansion_text_limit=
instead.-# File lib/rexml/document.rb, line 422 +# File lib/rexml/document.rb, line 424 def Document::entity_expansion_text_limit=( val ) Security.entity_expansion_text_limit = val end@@ -337,6 +357,8 @@Public Class Methods
# File lib/rexml/document.rb, line 92 def initialize( source = nil, context = {} ) @entity_expansion_count = 0 + @entity_expansion_limit = Security.entity_expansion_limit + @entity_expansion_text_limit = Security.entity_expansion_text_limit super() @context = context return if source.nil? @@ -366,7 +388,7 @@Public Class Methods
-# File lib/rexml/document.rb, line 401 +# File lib/rexml/document.rb, line 403 def Document::parse_stream( source, listener ) Parsers::StreamParser.new( source, listener ).parse end@@ -448,7 +470,7 @@Public Instance Methods
-# File lib/rexml/document.rb, line 170 +# File lib/rexml/document.rb, line 172 def add( child ) if child.kind_of? XMLDecl if @children[0].kind_of? XMLDecl @@ -510,7 +532,7 @@Public Instance Methods
-# File lib/rexml/document.rb, line 209 +# File lib/rexml/document.rb, line 211 def add_element(arg=nil, arg2=nil) rv = super raise "attempted adding second root element to document" if @elements.size > 1 @@ -536,7 +558,7 @@Public Instance Methods
Returns the new document resulting from executing
Document.new(self)
. SeeDocument.new
.-# File lib/rexml/document.rb, line 120 +# File lib/rexml/document.rb, line 122 def clone Document.new self end@@ -566,7 +588,7 @@Public Instance Methods
-# File lib/rexml/document.rb, line 241 +# File lib/rexml/document.rb, line 243 def doctype @children.find { |item| item.kind_of? DocType } end@@ -589,7 +611,7 @@Public Instance Methods
-# File lib/rexml/document.rb, line 442 +# File lib/rexml/document.rb, line 446 def document self end@@ -619,7 +641,7 @@Public Instance Methods
-# File lib/rexml/document.rb, line 290 +# File lib/rexml/document.rb, line 292 def encoding xml_decl().encoding end@@ -671,7 +693,7 @@Public Instance Methods
Returns the symbol
:document
.-# File lib/rexml/document.rb, line 110 +# File lib/rexml/document.rb, line 112 def node_type :document end@@ -694,10 +716,10 @@Public Instance Methods
-# File lib/rexml/document.rb, line 435 +# File lib/rexml/document.rb, line 439 def record_entity_expansion @entity_expansion_count += 1 - if @entity_expansion_count > Security.entity_expansion_limit + if @entity_expansion_count > @entity_expansion_limit raise "number of entity expansions exceeded, processing aborted." end end@@ -727,7 +749,7 @@Public Instance Methods
-# File lib/rexml/document.rb, line 225 +# File lib/rexml/document.rb, line 227 def root elements[1] #self @@ -759,7 +781,7 @@Public Instance Methods
-# File lib/rexml/document.rb, line 305 +# File lib/rexml/document.rb, line 307 def stand_alone? xml_decl().stand_alone? end@@ -789,7 +811,7 @@Public Instance Methods
-# File lib/rexml/document.rb, line 275 +# File lib/rexml/document.rb, line 277 def version xml_decl().version end@@ -858,7 +880,7 @@Public Instance Methods
-# File lib/rexml/document.rb, line 365 +# File lib/rexml/document.rb, line 367 def write(*arguments) if arguments.size == 1 and arguments[0].class == Hash options = arguments[0] @@ -921,7 +943,7 @@Public Instance Methods
-# File lib/rexml/document.rb, line 258 +# File lib/rexml/document.rb, line 260 def xml_decl rv = @children[0] return rv if rv.kind_of? XMLDecl diff --git a/REXML/Entity.html b/REXML/Entity.html index abd97562..946f3359 100644 --- a/REXML/Entity.html +++ b/REXML/Entity.html @@ -311,7 +311,7 @@Public Instance Methods
Returns the value of this entity unprocessed – raw. This is the normalized value; that is, with all %ent; and &ent; entities intact
-+# File lib/rexml/entity.rb, line 83 +# File lib/rexml/entity.rb, line 86 def normalized @value end@@ -334,7 +334,7 @@Public Instance Methods
Returns this entity as a string. See write().
-@@ -391,7 +394,7 @@# File lib/rexml/entity.rb, line 117 +# File lib/rexml/entity.rb, line 120 def to_s rv = '' write rv @@ -361,9 +361,12 @@Public Instance Methods
# File lib/rexml/entity.rb, line 73 def unnormalized - document.record_entity_expansion unless document.nil? + document&.record_entity_expansion + return nil if @value.nil? - @unnormalized = Text::unnormalize(@value, parent) + + @unnormalized = Text::unnormalize(@value, parent, + entity_expansion_text_limit: document&.entity_expansion_text_limit) endPublic Instance Methods
-# File lib/rexml/entity.rb, line 95 +# File lib/rexml/entity.rb, line 98 def write out, indent=-1 out << '<!ENTITY ' out << '% ' if @reference diff --git a/REXML/Parsers/BaseParser.html b/REXML/Parsers/BaseParser.html index 659eb53f..8ae10d2f 100644 --- a/REXML/Parsers/BaseParser.html +++ b/REXML/Parsers/BaseParser.html @@ -277,6 +277,26 @@Attributes
+++ entity_expansion_limit[W] ++ ++ ++++ entity_expansion_text_limit[W] ++ ++ ++@@ -341,7 +363,7 @@sourcePublic Class Methods @listeners = [] @prefixes = Set.new @entity_expansion_count = 0 + @entity_expansion_limit = Security.entity_expansion_limit + @entity_expansion_text_limit = Security.entity_expansion_text_limit endPublic Instance Methods
-# File lib/rexml/parsers/baseparser.rb, line 169 +# File lib/rexml/parsers/baseparser.rb, line 171 def add_listener( listener ) @listeners << listener end@@ -364,7 +386,7 @@Public Instance Methods
Returns true if there are no more events
-# File lib/rexml/parsers/baseparser.rb, line 198 +# File lib/rexml/parsers/baseparser.rb, line 202 def empty? return (@source.empty? and @stack.empty?) end@@ -387,7 +409,7 @@Public Instance Methods
-# File lib/rexml/parsers/baseparser.rb, line 530 +# File lib/rexml/parsers/baseparser.rb, line 534 def entity( reference, entities ) return unless entities @@ -416,7 +438,7 @@Public Instance Methods
Returns true if there are more events. Synonymous with !empty?
-# File lib/rexml/parsers/baseparser.rb, line 203 +# File lib/rexml/parsers/baseparser.rb, line 207 def has_next? return !(@source.empty? and @stack.empty?) end@@ -439,7 +461,7 @@Public Instance Methods
Escapes all possible entities
-# File lib/rexml/parsers/baseparser.rb, line 541 +# File lib/rexml/parsers/baseparser.rb, line 545 def normalize( input, entities=nil, entity_filter=nil ) copy = input.clone # Doing it like this rather than in a loop improves the speed @@ -473,7 +495,7 @@Public Instance Methods
Peek at the
depth
event in the stack. The first element on the stack is at depth 0. Ifdepth
is -1, will parse to the end of the input stream and return the last event, which is always :end_document. Be aware that this causes the stream to be parsed up to thedepth
event, so you can effectively pre-parse the entire document (pull the entire thing into memory) using this method.-# File lib/rexml/parsers/baseparser.rb, line 219 +# File lib/rexml/parsers/baseparser.rb, line 223 def peek depth=0 raise %Q[Illegal argument "#{depth}"] if depth < -1 temp = [] @@ -506,7 +528,7 @@Public Instance Methods
-# File lib/rexml/parsers/baseparser.rb, line 188 +# File lib/rexml/parsers/baseparser.rb, line 192 def position if @source.respond_to? :position @source.position @@ -534,7 +556,7 @@Public Instance Methods
Returns the next event. This is a
PullEvent
object.-# File lib/rexml/parsers/baseparser.rb, line 234 +# File lib/rexml/parsers/baseparser.rb, line 238 def pull @source.drop_parsed_content @@ -563,7 +585,7 @@Public Instance Methods
-# File lib/rexml/parsers/baseparser.rb, line 176 +# File lib/rexml/parsers/baseparser.rb, line 180 def stream=( source ) @source = SourceFactory.create_from( source ) @closed = nil @@ -594,7 +616,7 @@Public Instance Methods
Unescapes all possible entities
-# File lib/rexml/parsers/baseparser.rb, line 557 +# File lib/rexml/parsers/baseparser.rb, line 561 def unnormalize( string, entities=nil, filter=nil ) if string.include?("\r") rv = string.gsub( Private::CARRIAGE_RETURN_NEWLINE_PATTERN, "\n" ) @@ -626,7 +648,7 @@Public Instance Methods
end re = Private::DEFAULT_ENTITIES_PATTERNS[entity_reference] || /&#{entity_reference};/ rv.gsub!( re, entity_value ) - if rv.bytesize > Security.entity_expansion_text_limit + if rv.bytesize > @entity_expansion_text_limit raise "entity expansion has grown too large" end else @@ -657,7 +679,7 @@Public Instance Methods
Push an event back on the head of the stream. This method has (theoretically) infinite depth.
-# File lib/rexml/parsers/baseparser.rb, line 209 +# File lib/rexml/parsers/baseparser.rb, line 213 def unshift token @stack.unshift(token) enddiff --git a/REXML/Parsers/PullEvent.html b/REXML/Parsers/PullEvent.html index 8ec341a5..5b70948d 100644 --- a/REXML/Parsers/PullEvent.html +++ b/REXML/Parsers/PullEvent.html @@ -131,7 +131,7 @@Public Class Methods
The type of this event. Will be one of :tag_start, :tag_end, :text, :processing_instruction, :comment, :doctype, :attlistdecl, :entitydecl, :notationdecl, :entity, :cdata, :xmldecl, or :error.
-# File lib/rexml/parsers/pullparser.rb, line 99 +# File lib/rexml/parsers/pullparser.rb, line 107 def initialize(arg) @contents = arg end@@ -161,7 +161,7 @@Public Instance Methods
-# File lib/rexml/parsers/pullparser.rb, line 103 +# File lib/rexml/parsers/pullparser.rb, line 111 def []( start, endd=nil) if start.kind_of? Range @contents.slice( start.begin+1 .. start.end ) @@ -194,7 +194,7 @@Public Instance Methods
Content: [ String text ]
-# File lib/rexml/parsers/pullparser.rb, line 152 +# File lib/rexml/parsers/pullparser.rb, line 160 def attlistdecl? @contents[0] == :attlistdecl end@@ -217,7 +217,7 @@Public Instance Methods
Content: [ String text ]
-# File lib/rexml/parsers/pullparser.rb, line 183 +# File lib/rexml/parsers/pullparser.rb, line 191 def cdata? @contents[0] == :cdata end@@ -240,7 +240,7 @@Public Instance Methods
Content: [ String text ]
-# File lib/rexml/parsers/pullparser.rb, line 142 +# File lib/rexml/parsers/pullparser.rb, line 150 def comment? @contents[0] == :comment end@@ -263,7 +263,7 @@Public Instance Methods
Content: [ String name, String pub_sys, String long_name, String uri ]
-# File lib/rexml/parsers/pullparser.rb, line 147 +# File lib/rexml/parsers/pullparser.rb, line 155 def doctype? @contents[0] == :start_doctype end@@ -286,7 +286,7 @@Public Instance Methods
Content: [ String text ]
-# File lib/rexml/parsers/pullparser.rb, line 157 +# File lib/rexml/parsers/pullparser.rb, line 165 def elementdecl? @contents[0] == :elementdecl end@@ -309,7 +309,7 @@Public Instance Methods
Content: [ String tag_name ]
-# File lib/rexml/parsers/pullparser.rb, line 127 +# File lib/rexml/parsers/pullparser.rb, line 135 def end_element? @contents[0] == :end_element end@@ -332,7 +332,7 @@Public Instance Methods
Content: [ String text ]
-# File lib/rexml/parsers/pullparser.rb, line 178 +# File lib/rexml/parsers/pullparser.rb, line 186 def entity? @contents[0] == :entity end@@ -362,7 +362,7 @@Public Instance Methods
Content: [ String text ]
-# File lib/rexml/parsers/pullparser.rb, line 168 +# File lib/rexml/parsers/pullparser.rb, line 176 def entitydecl? @contents[0] == :entitydecl end@@ -385,7 +385,7 @@Public Instance Methods
-# File lib/rexml/parsers/pullparser.rb, line 192 +# File lib/rexml/parsers/pullparser.rb, line 200 def error? @contents[0] == :error end@@ -408,7 +408,7 @@Public Instance Methods
-# File lib/rexml/parsers/pullparser.rb, line 117 +# File lib/rexml/parsers/pullparser.rb, line 125 def event_type @contents[0] end@@ -431,7 +431,7 @@Public Instance Methods
-# File lib/rexml/parsers/pullparser.rb, line 196 +# File lib/rexml/parsers/pullparser.rb, line 204 def inspect @contents[0].to_s + ": " + @contents[1..-1].inspect end@@ -454,7 +454,7 @@Public Instance Methods
Content: [ String text ]
-# File lib/rexml/parsers/pullparser.rb, line 137 +# File lib/rexml/parsers/pullparser.rb, line 145 def instruction? @contents[0] == :processing_instruction end@@ -477,7 +477,7 @@Public Instance Methods
Content: [ String text ]
-# File lib/rexml/parsers/pullparser.rb, line 173 +# File lib/rexml/parsers/pullparser.rb, line 181 def notationdecl? @contents[0] == :notationdecl end@@ -500,7 +500,7 @@Public Instance Methods
Content: [ String tag_name, Hash attributes ]
-# File lib/rexml/parsers/pullparser.rb, line 122 +# File lib/rexml/parsers/pullparser.rb, line 130 def start_element? @contents[0] == :start_element end@@ -523,7 +523,7 @@Public Instance Methods
Content: [ String raw_text, String unnormalized_text ]
-# File lib/rexml/parsers/pullparser.rb, line 132 +# File lib/rexml/parsers/pullparser.rb, line 140 def text? @contents[0] == :text end@@ -546,7 +546,7 @@Public Instance Methods
Content: [ String version, String encoding, String standalone ]
-+ +# File lib/rexml/parsers/pullparser.rb, line 188 +# File lib/rexml/parsers/pullparser.rb, line 196 def xmldecl? @contents[0] == :xmldecl enddiff --git a/REXML/Parsers/PullParser.html b/REXML/Parsers/PullParser.html index 65b649c7..0ce6f23f 100644 --- a/REXML/Parsers/PullParser.html +++ b/REXML/Parsers/PullParser.html @@ -92,6 +92,8 @@Methods
#add_listener #each #entity_expansion_count + #entity_expansion_limit= + #entity_expansion_text_limit= #peek #pull #unshift @@ -215,7 +217,7 @@ Public Instance Methods
-+# File lib/rexml/parsers/pullparser.rb, line 54 +# File lib/rexml/parsers/pullparser.rb, line 62 def each while has_next? yield self.pull @@ -248,6 +250,52 @@Public Instance Methods
++ +++ ++ entity_expansion_limit=( limit ) + click to toggle source +++ + ++ + +++# File lib/rexml/parsers/pullparser.rb, line 54 +def entity_expansion_limit=( limit ) + @parser.entity_expansion_limit = limit +end++++ ++ entity_expansion_text_limit=( limit ) + click to toggle source +++ + ++ +++# File lib/rexml/parsers/pullparser.rb, line 58 +def entity_expansion_text_limit=( limit ) + @parser.entity_expansion_text_limit = limit +end+@@ -263,7 +311,7 @@Public Instance Methods
-# File lib/rexml/parsers/pullparser.rb, line 60 +# File lib/rexml/parsers/pullparser.rb, line 68 def peek depth=0 if @my_stack.length <= depth (depth - @my_stack.length + 1).times { @@ -292,7 +340,7 @@Public Instance Methods
-# File lib/rexml/parsers/pullparser.rb, line 70 +# File lib/rexml/parsers/pullparser.rb, line 78 def pull return @my_stack.shift if @my_stack.length > 0 @@ -326,7 +374,7 @@Public Instance Methods
-# File lib/rexml/parsers/pullparser.rb, line 85 +# File lib/rexml/parsers/pullparser.rb, line 93 def unshift token @my_stack.unshift token enddiff --git a/REXML/Parsers/SAX2Parser.html b/REXML/Parsers/SAX2Parser.html index 80b3fd39..5a108f20 100644 --- a/REXML/Parsers/SAX2Parser.html +++ b/REXML/Parsers/SAX2Parser.html @@ -76,6 +76,8 @@Methods
#add_listener #deafen #entity_expansion_count + #entity_expansion_limit= + #entity_expansion_text_limit= #listen #parse #source @@ -156,7 +158,7 @@ Public Instance Methods
-+ +# File lib/rexml/parsers/sax2parser.rb, line 29 +# File lib/rexml/parsers/sax2parser.rb, line 37 def add_listener( listener ) @parser.add_listener( listener ) end@@ -179,7 +181,7 @@Public Instance Methods
-+# File lib/rexml/parsers/sax2parser.rb, line 81 +# File lib/rexml/parsers/sax2parser.rb, line 89 def deafen( listener=nil, &blok ) if listener @listeners.delete_if {|item| item[-1] == listener } @@ -215,6 +217,52 @@Public Instance Methods
++ +++ ++ entity_expansion_limit=( limit ) + click to toggle source +++ + ++ + +++# File lib/rexml/parsers/sax2parser.rb, line 29 +def entity_expansion_limit=( limit ) + @parser.entity_expansion_limit = limit +end++++ ++ entity_expansion_text_limit=( limit ) + click to toggle source +++ + ++ +++# File lib/rexml/parsers/sax2parser.rb, line 33 +def entity_expansion_text_limit=( limit ) + @parser.entity_expansion_text_limit = limit +end+@@ -264,7 +312,7 @@+ +Public Instance Methods
Block will be passed the same arguments as a
SAX2Listener
method would be, where the method name is the same as the matched Symbol. See theSAX2Listener
for more information.-+# File lib/rexml/parsers/sax2parser.rb, line 63 +# File lib/rexml/parsers/sax2parser.rb, line 71 def listen( *args, &blok ) if args[0].kind_of? Symbol if args.size == 2 @@ -301,7 +349,7 @@Public Instance Methods
-@@ -178,6 +180,52 @@# File lib/rexml/parsers/sax2parser.rb, line 90 +# File lib/rexml/parsers/sax2parser.rb, line 98 def parse @procs.each { |sym,match,block| block.call if sym == :start_document } @listeners.each { |sym,match,block| diff --git a/REXML/Parsers/StreamParser.html b/REXML/Parsers/StreamParser.html index 94bf421e..7f958833 100644 --- a/REXML/Parsers/StreamParser.html +++ b/REXML/Parsers/StreamParser.html @@ -75,6 +75,8 @@Methods
::new #add_listener #entity_expansion_count + #entity_expansion_limit= + #entity_expansion_text_limit= #parse Public Instance Methods
++ +++ ++ entity_expansion_limit=( limit ) + click to toggle source +++ + ++ + +++# File lib/rexml/parsers/streamparser.rb, line 21 +def entity_expansion_limit=( limit ) + @parser.entity_expansion_limit = limit +end++++ ++ entity_expansion_text_limit=( limit ) + click to toggle source +++ + ++ +++# File lib/rexml/parsers/streamparser.rb, line 25 +def entity_expansion_text_limit=( limit ) + @parser.entity_expansion_text_limit = limit +end+@@ -193,7 +241,7 @@Public Instance Methods
-# File lib/rexml/parsers/streamparser.rb, line 21 +# File lib/rexml/parsers/streamparser.rb, line 29 def parse # entity string while true diff --git a/REXML/Text.html b/REXML/Text.html index 5abbc894..5ff55cf9 100644 --- a/REXML/Text.html +++ b/REXML/Text.html @@ -474,7 +474,7 @@Public Instance Methods
-@@ -652,7 +653,7 @@# File lib/rexml/text.rb, line 298 +# File lib/rexml/text.rb, line 299 def indent_text(string, level=1, style="\t", indentfirstline=true) return string if level < 0 new_string = '' @@ -625,7 +625,8 @@Public Instance Methods
# File lib/rexml/text.rb, line 270 def value - @unnormalized ||= Text::unnormalize( @string, doctype ) + @unnormalized ||= Text::unnormalize(@string, doctype, + entity_expansion_text_limit: document&.entity_expansion_text_limit) endPublic Instance Methods
-# File lib/rexml/text.rb, line 281 +# File lib/rexml/text.rb, line 282 def value=( val ) @string = val.gsub( /\r\n?/, "\n" ) clear_cache @@ -677,7 +678,7 @@Public Instance Methods
-# File lib/rexml/text.rb, line 287 +# File lib/rexml/text.rb, line 288 def wrap(string, width, addnewline=false) # Recursively wrap string at width. return string if string.length <= width @@ -709,7 +710,7 @@DEPRECATED
REXML::Formatters
-# File lib/rexml/text.rb, line 313 +# File lib/rexml/text.rb, line 314 def write( writer, indent=-1, transitive=false, ie_hack=false ) Kernel.warn("#{self.class.name}.write is deprecated. See REXML::Formatters", uplevel: 1) formatter = if indent > -1 @@ -750,7 +751,7 @@DEPRECATED -
# File lib/rexml/text.rb, line 345 +# File lib/rexml/text.rb, line 346 def write_with_substitution out, input copy = input.clone # Doing it like this rather than in a loop improves the speed @@ -781,7 +782,7 @@DEPRECATED -
# File lib/rexml/text.rb, line 325 +# File lib/rexml/text.rb, line 326 def xpath path = @parent.xpath path += "/text()" diff --git a/js/search_index.js b/js/search_index.js index cd65af54..c40ea272 100644 --- a/js/search_index.js +++ b/js/search_index.js @@ -1 +1 @@ -var search_data = {"index":{"searchIndex":["rexml","attlistdecl","attribute","attributes","cdata","child","comment","dclonable","dtd","attlistdecl","elementdecl","entitydecl","notationdecl","parser","declaration","doctype","document","element","elementdecl","elements","encoding","entity","entityconst","externalentity","formatters","default","pretty","transitive","functions","iosource","instruction","light","node","namespace","node","notationdecl","output","parent","parseexception","parsers","baseparser","private","enumerabletally","lightparser","pullevent","pullparser","sax2parser","streamparser","stringscannercaptures","treeparser","ultralightparser","xpathparser","quickpath","referencewriter","sax2listener","security","source","private","sourcefactory","streamlistener","stringscannercheckscanstring","text","undefinednamespaceexception","validation","choice","event","interleave","oneormore","optional","ref","relaxng","sequence","state","validationexception","validator","zeroormore","xmldecl","xmltokens","xpath","xpathnode","xpathparser","<<()","<<()","<<()","<<()","<<()","<<()","<<()","<<()","<<()","<=>()","<=>()","==()","==()","==()","==()","==()","=~()","[]()","[]()","[]()","[]()","[]()","[]()","[]()","[]=()","[]=()","[]=()","[]=()","[]=()","abbreviate()","add()","add()","add()","add()","add()","add_attribute()","add_attributes()","add_element()","add_element()","add_event_to_arry()","add_event_to_arry()","add_listener()","add_listener()","add_listener()","add_listener()","add_listener()","add_listener()","add_listener()","add_namespace()","add_text()","attlistdecl()","attlistdecl()","attlistdecl?()","attribute()","attribute()","attribute_of()","attributes_of()","axe()","boolean()","buffer()","buffer_encoding=()","bytes()","captures()","cdata()","cdata()","cdata?()","cdatas()","ceiling()","characters()","check()","check()","children()","children()","clone()","clone()","clone()","clone()","clone()","clone()","clone()","clone()","clone()","collect()","comment()","comment()","comment?()","comments()","compare_language()","concat()","contains()","context()","context()","context=()","count()","create_from()","current_line()","current_line()","dclone()","deafen()","decode()","deep_clone()","default()","delete()","delete()","delete()","delete_all()","delete_all()","delete_at()","delete_attribute()","delete_element()","delete_if()","delete_namespace()","doctype()","doctype()","doctype()","doctype()","doctype()","doctype?()","doctype_end()","document()","document()","document()","done?()","dowrite()","drop_parsed_content()","dump()","each()","each()","each()","each()","each()","each()","each()","each()","each_attribute()","each_child()","each_element()","each_element_with_attribute()","each_element_with_text()","each_index()","each_recursive()","element=()","elementdecl()","elementdecl()","elementdecl?()","empty?()","empty?()","empty?()","empty?()","empty?()","encode()","encoding()","encoding=()","encoding=()","encoding=()","end_document()","end_element()","end_element?()","end_prefix_mapping()","ensure_buffer()","ensure_buffer()","entity()","entity()","entity()","entity?()","entity_expansion_count()","entity_expansion_count()","entity_expansion_count()","entity_expansion_limit()","entity_expansion_limit()","entity_expansion_limit=()","entity_expansion_limit=()","entity_expansion_text_limit()","entity_expansion_text_limit()","entity_expansion_text_limit=()","entity_expansion_text_limit=()","entitydecl()","entitydecl()","entitydecl?()","error?()","event_type()","expand()","expand_ref_in()","expanded_name()","expected()","expected()","expected()","expected()","expected()","expected()","false()","filter()","find_first_recursive()","first()","first()","first()","floor()","fully_expanded_name()","function()","generate_event()","get_attribute()","get_attribute_ns()","get_elements()","get_first()","get_namespace()","get_text()","has_attributes?()","has_elements?()","has_name?()","has_name?()","has_next?()","has_text?()","hash()","id()","ignore_whitespace_nodes()","include?()","indent()","indent_text()","index()","index()","index_in_parent()","inject()","insert_after()","insert_before()","inspect()","inspect()","inspect()","inspect()","inspect()","inspect()","inspect()","inspect()","inspect()","inspect()","inspect()","instruction()","instruction?()","instructions()","lang()","last()","length()","length()","line()","listen()","local_name()","local_name()","local_name=()","match()","match()","match()","match()","match()","matches?()","matches?()","matches?()","matches?()","matches?()","matches?()","matches?()","method_missing()","name()","name()","name()","name()","name()","name=()","name=()","namespace()","namespace()","namespace()","namespace=()","namespace_context()","namespace_context=()","namespace_uri()","namespaces()","namespaces()","namespaces=()","namespaces=()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","next()","next()","next()","next()","next()","next()","next_current()","next_element()","next_sibling=()","next_sibling_node()","node_type()","node_type()","node_type()","node_type()","node_type()","node_type()","node_type()","node_type()","node_type()","node_type()","normalize()","normalize_space()","normalized()","normalized=()","not()","notation()","notationdecl()","notationdecl()","notationdecl?()","notations()","nowrite()","number()","old_enc=()","parent()","parent()","parent=()","parent=()","parent=()","parent?()","parent?()","parse()","parse()","parse()","parse()","parse()","parse()","parse()","parse()","parse_args()","parse_helper()","parse_source()","parse_source()","parse_stream()","peek()","peek()","position()","position()","position()","position()","position()","position=()","preciate_to_string()","predicate()","predicate()","predicate()","predicate_to_path()","prefix()","prefix()","prefixes()","prefixes()","previous=()","previous_element()","previous_sibling=()","previous_sibling_node()","processing_instruction()","processing_instruction()","progress()","public()","pull()","pull()","push()","raw()","read()","read()","read_until()","read_until()","receive()","record_entity_expansion()","remove()","remove()","replace_child()","replace_with()","reset()","reset()","reset()","reset()","reset()","rewind()","rewind()","root()","root()","root()","root_node()","round()","scan()","send()","single?()","singleton_method_added()","size()","size()","size()","size()","source()","stand_alone?()","start_document()","start_element()","start_element?()","start_prefix_mapping()","starts_with()","stream=()","string()","string_length()","string_value()","substring()","substring_after()","substring_before()","sum()","system()","tag_end()","tag_start()","tally()","text()","text()","text()","text=()","text=()","text?()","texts()","to_a()","to_a()","to_a()","to_s()","to_s()","to_s()","to_s()","to_s()","to_s()","to_s()","to_s()","to_s()","to_s()","to_s()","to_s()","to_s()","to_s()","to_s()","to_s()","to_string()","translate()","true()","unnormalize()","unnormalized()","unshift()","unshift()","unshift()","validate()","value()","value()","value()","value=()","variables()","variables=()","variables=()","version()","whitespace()","wrap()","write()","write()","write()","write()","write()","write()","write()","write()","write()","write()","write()","write()","write()","write()","write()","write()","write()","write()","write_cdata()","write_cdata()","write_comment()","write_comment()","write_document()","write_document()","write_element()","write_element()","write_element()","write_instruction()","write_text()","write_text()","write_text()","write_with_substitution()","xml_decl()","xmldecl()","xmldecl()","xmldecl()","xmldecl?()","xpath()","xpath()","xpath()","license","news","readme","context","child","document","element","node","parent","child_toc","document_toc","element_toc","master_toc","node_toc","parent_toc","tutorial"],"longSearchIndex":["rexml","rexml::attlistdecl","rexml::attribute","rexml::attributes","rexml::cdata","rexml::child","rexml::comment","rexml::dclonable","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::baseparser::private","rexml::parsers::enumerabletally","rexml::parsers::lightparser","rexml::parsers::pullevent","rexml::parsers::pullparser","rexml::parsers::sax2parser","rexml::parsers::streamparser","rexml::parsers::stringscannercaptures","rexml::parsers::treeparser","rexml::parsers::ultralightparser","rexml::parsers::xpathparser","rexml::quickpath","rexml::referencewriter","rexml::sax2listener","rexml::security","rexml::source","rexml::source::private","rexml::sourcefactory","rexml::streamlistener","rexml::stringscannercheckscanstring","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::xpathnode","rexml::xpathparser","rexml::attributes#<<()","rexml::document#<<()","rexml::elements#<<()","rexml::light::node#<<()","rexml::output#<<()","rexml::parent#<<()","rexml::text#<<()","rexml::validation::choice#<<()","rexml::validation::state#<<()","rexml::comment#<=>()","rexml::text#<=>()","rexml::attribute#==()","rexml::comment#==()","rexml::instruction#==()","rexml::validation::event#==()","rexml::xmldecl#==()","rexml::light::node#=~()","rexml::attlistdecl#[]()","rexml::attributes#[]()","rexml::element#[]()","rexml::elements#[]()","rexml::light::node#[]()","rexml::parent#[]()","rexml::parsers::pullevent#[]()","rexml::attributes#[]=()","rexml::elements#[]=()","rexml::light::node#[]=()","rexml::parent#[]=()","rexml::xpathparser#[]=()","rexml::parsers::xpathparser#abbreviate()","rexml::attributes#add()","rexml::doctype#add()","rexml::document#add()","rexml::elements#add()","rexml::parent#add()","rexml::element#add_attribute()","rexml::element#add_attributes()","rexml::document#add_element()","rexml::element#add_element()","rexml::validation::choice#add_event_to_arry()","rexml::validation::state#add_event_to_arry()","rexml::parsers::baseparser#add_listener()","rexml::parsers::lightparser#add_listener()","rexml::parsers::pullparser#add_listener()","rexml::parsers::sax2parser#add_listener()","rexml::parsers::streamparser#add_listener()","rexml::parsers::treeparser#add_listener()","rexml::parsers::ultralightparser#add_listener()","rexml::element#add_namespace()","rexml::element#add_text()","rexml::sax2listener#attlistdecl()","rexml::streamlistener#attlistdecl()","rexml::parsers::pullevent#attlistdecl?()","rexml::element#attribute()","rexml::quickpath::attribute()","rexml::doctype#attribute_of()","rexml::doctype#attributes_of()","rexml::quickpath::axe()","rexml::functions::boolean()","rexml::source#buffer()","rexml::source#buffer_encoding=()","rexml::child#bytes()","rexml::parsers::stringscannercaptures#captures()","rexml::sax2listener#cdata()","rexml::streamlistener#cdata()","rexml::parsers::pullevent#cdata?()","rexml::element#cdatas()","rexml::functions::ceiling()","rexml::sax2listener#characters()","rexml::stringscannercheckscanstring#check()","rexml::text::check()","rexml::light::node#children()","rexml::parent#children()","rexml::attribute#clone()","rexml::cdata#clone()","rexml::comment#clone()","rexml::doctype#clone()","rexml::document#clone()","rexml::element#clone()","rexml::instruction#clone()","rexml::text#clone()","rexml::xmldecl#clone()","rexml::elements#collect()","rexml::sax2listener#comment()","rexml::streamlistener#comment()","rexml::parsers::pullevent#comment?()","rexml::element#comments()","rexml::functions::compare_language()","rexml::functions::concat()","rexml::functions::contains()","rexml::doctype#context()","rexml::parseexception#context()","rexml::functions::context=()","rexml::functions::count()","rexml::sourcefactory::create_from()","rexml::iosource#current_line()","rexml::source#current_line()","rexml::dclonable#dclone()","rexml::parsers::sax2parser#deafen()","rexml::encoding#decode()","rexml::parent#deep_clone()","rexml::xmldecl::default()","rexml::attributes#delete()","rexml::elements#delete()","rexml::parent#delete()","rexml::attributes#delete_all()","rexml::elements#delete_all()","rexml::parent#delete_at()","rexml::element#delete_attribute()","rexml::element#delete_element()","rexml::parent#delete_if()","rexml::element#delete_namespace()","rexml::attribute#doctype()","rexml::document#doctype()","rexml::sax2listener#doctype()","rexml::streamlistener#doctype()","rexml::text#doctype()","rexml::parsers::pullevent#doctype?()","rexml::streamlistener#doctype_end()","rexml::child#document()","rexml::document#document()","rexml::element#document()","rexml::validation::event#done?()","rexml::xmldecl#dowrite()","rexml::source#drop_parsed_content()","rexml::validation::validator#dump()","rexml::attlistdecl#each()","rexml::attributes#each()","rexml::elements#each()","rexml::light::node#each()","rexml::parent#each()","rexml::parsers::pullparser#each()","rexml::quickpath::each()","rexml::xpath::each()","rexml::attributes#each_attribute()","rexml::parent#each_child()","rexml::element#each_element()","rexml::element#each_element_with_attribute()","rexml::element#each_element_with_text()","rexml::parent#each_index()","rexml::node#each_recursive()","rexml::attribute#element=()","rexml::sax2listener#elementdecl()","rexml::streamlistener#elementdecl()","rexml::parsers::pullevent#elementdecl?()","rexml::elements#empty?()","rexml::iosource#empty?()","rexml::parsers::baseparser#empty?()","rexml::source#empty?()","rexml::text#empty?()","rexml::encoding#encode()","rexml::document#encoding()","rexml::encoding#encoding=()","rexml::source#encoding=()","rexml::xmldecl#encoding=()","rexml::sax2listener#end_document()","rexml::sax2listener#end_element()","rexml::parsers::pullevent#end_element?()","rexml::sax2listener#end_prefix_mapping()","rexml::iosource#ensure_buffer()","rexml::source#ensure_buffer()","rexml::doctype#entity()","rexml::parsers::baseparser#entity()","rexml::streamlistener#entity()","rexml::parsers::pullevent#entity?()","rexml::parsers::pullparser#entity_expansion_count()","rexml::parsers::sax2parser#entity_expansion_count()","rexml::parsers::streamparser#entity_expansion_count()","rexml::document::entity_expansion_limit()","rexml::security::entity_expansion_limit()","rexml::document::entity_expansion_limit=()","rexml::security::entity_expansion_limit=()","rexml::document::entity_expansion_text_limit()","rexml::security::entity_expansion_text_limit()","rexml::document::entity_expansion_text_limit=()","rexml::security::entity_expansion_text_limit=()","rexml::sax2listener#entitydecl()","rexml::streamlistener#entitydecl()","rexml::parsers::pullevent#entitydecl?()","rexml::parsers::pullevent#error?()","rexml::parsers::pullevent#event_type()","rexml::parsers::xpathparser#expand()","rexml::validation::state#expand_ref_in()","rexml::document#expanded_name()","rexml::validation::choice#expected()","rexml::validation::interleave#expected()","rexml::validation::oneormore#expected()","rexml::validation::optional#expected()","rexml::validation::state#expected()","rexml::validation::zeroormore#expected()","rexml::functions::false()","rexml::quickpath::filter()","rexml::node#find_first_recursive()","rexml::quickpath::first()","rexml::xpath::first()","rexml::xpathparser#first()","rexml::functions::floor()","rexml::namespace#fully_expanded_name()","rexml::quickpath::function()","rexml::validation::state#generate_event()","rexml::attributes#get_attribute()","rexml::attributes#get_attribute_ns()","rexml::element#get_elements()","rexml::xpathparser#get_first()","rexml::functions::get_namespace()","rexml::element#get_text()","rexml::element#has_attributes?()","rexml::element#has_elements?()","rexml::light::node#has_name?()","rexml::namespace#has_name?()","rexml::parsers::baseparser#has_next?()","rexml::element#has_text?()","rexml::attribute#hash()","rexml::functions::id()","rexml::element#ignore_whitespace_nodes()","rexml::attlistdecl#include?()","rexml::node#indent()","rexml::text#indent_text()","rexml::elements#index()","rexml::parent#index()","rexml::node#index_in_parent()","rexml::elements#inject()","rexml::parent#insert_after()","rexml::parent#insert_before()","rexml::attribute#inspect()","rexml::element#inspect()","rexml::instruction#inspect()","rexml::parsers::pullevent#inspect()","rexml::text#inspect()","rexml::validation::choice#inspect()","rexml::validation::event#inspect()","rexml::validation::interleave#inspect()","rexml::validation::ref#inspect()","rexml::validation::state#inspect()","rexml::xmldecl#inspect()","rexml::streamlistener#instruction()","rexml::parsers::pullevent#instruction?()","rexml::element#instructions()","rexml::functions::lang()","rexml::functions::last()","rexml::attributes#length()","rexml::parent#length()","rexml::parseexception#line()","rexml::parsers::sax2parser#listen()","rexml::functions::local_name()","rexml::light::node#local_name()","rexml::light::node#local_name=()","rexml::iosource#match()","rexml::quickpath::match()","rexml::source#match()","rexml::xpath::match()","rexml::xpathparser#match()","rexml::entity::matches?()","rexml::validation::choice#matches?()","rexml::validation::event#matches?()","rexml::validation::interleave#matches?()","rexml::validation::oneormore#matches?()","rexml::validation::optional#matches?()","rexml::validation::sequence#matches?()","rexml::quickpath::method_missing()","rexml::document#name()","rexml::functions::name()","rexml::light::node#name()","rexml::notationdecl#name()","rexml::quickpath::name()","rexml::light::node#name=()","rexml::namespace#name=()","rexml::attribute#namespace()","rexml::element#namespace()","rexml::light::node#namespace()","rexml::light::node#namespace=()","rexml::functions::namespace_context()","rexml::functions::namespace_context=()","rexml::functions::namespace_uri()","rexml::attributes#namespaces()","rexml::element#namespaces()","rexml::parsers::xpathparser#namespaces=()","rexml::xpathparser#namespaces=()","rexml::attlistdecl::new()","rexml::attribute::new()","rexml::attributes::new()","rexml::cdata::new()","rexml::child::new()","rexml::comment::new()","rexml::dtd::elementdecl::new()","rexml::dtd::entitydecl::new()","rexml::dtd::notationdecl::new()","rexml::declaration::new()","rexml::doctype::new()","rexml::document::new()","rexml::element::new()","rexml::elementdecl::new()","rexml::elements::new()","rexml::entity::new()","rexml::externalentity::new()","rexml::formatters::default::new()","rexml::formatters::pretty::new()","rexml::formatters::transitive::new()","rexml::iosource::new()","rexml::instruction::new()","rexml::light::node::new()","rexml::notationdecl::new()","rexml::output::new()","rexml::parent::new()","rexml::parseexception::new()","rexml::parsers::baseparser::new()","rexml::parsers::lightparser::new()","rexml::parsers::pullevent::new()","rexml::parsers::pullparser::new()","rexml::parsers::sax2parser::new()","rexml::parsers::streamparser::new()","rexml::parsers::treeparser::new()","rexml::parsers::ultralightparser::new()","rexml::referencewriter::new()","rexml::source::new()","rexml::text::new()","rexml::undefinednamespaceexception::new()","rexml::validation::choice::new()","rexml::validation::event::new()","rexml::validation::interleave::new()","rexml::validation::oneormore::new()","rexml::validation::ref::new()","rexml::validation::relaxng::new()","rexml::validation::state::new()","rexml::validation::validationexception::new()","rexml::xmldecl::new()","rexml::xpathnode::new()","rexml::xpathparser::new()","rexml::validation::choice#next()","rexml::validation::interleave#next()","rexml::validation::oneormore#next()","rexml::validation::optional#next()","rexml::validation::state#next()","rexml::validation::zeroormore#next()","rexml::validation::interleave#next_current()","rexml::element#next_element()","rexml::child#next_sibling=()","rexml::node#next_sibling_node()","rexml::attlistdecl#node_type()","rexml::attribute#node_type()","rexml::comment#node_type()","rexml::doctype#node_type()","rexml::document#node_type()","rexml::element#node_type()","rexml::instruction#node_type()","rexml::light::node#node_type()","rexml::text#node_type()","rexml::xmldecl#node_type()","rexml::parsers::baseparser#normalize()","rexml::functions::normalize_space()","rexml::entity#normalized()","rexml::attribute#normalized=()","rexml::functions::not()","rexml::doctype#notation()","rexml::sax2listener#notationdecl()","rexml::streamlistener#notationdecl()","rexml::parsers::pullevent#notationdecl?()","rexml::doctype#notations()","rexml::xmldecl#nowrite()","rexml::functions::number()","rexml::xmldecl#old_enc=()","rexml::elements#parent()","rexml::light::node#parent()","rexml::child#parent=()","rexml::light::node#parent=()","rexml::text#parent=()","rexml::node#parent?()","rexml::parent#parent?()","rexml::dtd::parser::parse()","rexml::parsers::lightparser#parse()","rexml::parsers::sax2parser#parse()","rexml::parsers::streamparser#parse()","rexml::parsers::treeparser#parse()","rexml::parsers::ultralightparser#parse()","rexml::parsers::xpathparser#parse()","rexml::xpathparser#parse()","rexml::quickpath::parse_args()","rexml::dtd::parser::parse_helper()","rexml::dtd::entitydecl::parse_source()","rexml::dtd::notationdecl::parse_source()","rexml::document::parse_stream()","rexml::parsers::baseparser#peek()","rexml::parsers::pullparser#peek()","rexml::functions::position()","rexml::parseexception#position()","rexml::parsers::baseparser#position()","rexml::source#position()","rexml::xpathnode#position()","rexml::source#position=()","rexml::parsers::xpathparser#preciate_to_string()","rexml::parsers::xpathparser#predicate()","rexml::quickpath::predicate()","rexml::xpathparser#predicate()","rexml::parsers::xpathparser#predicate_to_path()","rexml::attribute#prefix()","rexml::light::node#prefix()","rexml::attributes#prefixes()","rexml::element#prefixes()","rexml::validation::state#previous=()","rexml::element#previous_element()","rexml::child#previous_sibling=()","rexml::node#previous_sibling_node()","rexml::functions::processing_instruction()","rexml::sax2listener#processing_instruction()","rexml::sax2listener#progress()","rexml::doctype#public()","rexml::parsers::baseparser#pull()","rexml::parsers::pullparser#pull()","rexml::parent#push()","rexml::element#raw()","rexml::iosource#read()","rexml::source#read()","rexml::iosource#read_until()","rexml::source#read_until()","rexml::validation::relaxng#receive()","rexml::document#record_entity_expansion()","rexml::attribute#remove()","rexml::child#remove()","rexml::parent#replace_child()","rexml::child#replace_with()","rexml::validation::choice#reset()","rexml::validation::interleave#reset()","rexml::validation::oneormore#reset()","rexml::validation::state#reset()","rexml::validation::validator#reset()","rexml::parsers::lightparser#rewind()","rexml::parsers::ultralightparser#rewind()","rexml::document#root()","rexml::element#root()","rexml::light::node#root()","rexml::element#root_node()","rexml::functions::round()","rexml::stringscannercheckscanstring#scan()","rexml::functions::send()","rexml::validation::event#single?()","rexml::functions::singleton_method_added()","rexml::attributes#size()","rexml::elements#size()","rexml::light::node#size()","rexml::parent#size()","rexml::parsers::sax2parser#source()","rexml::document#stand_alone?()","rexml::sax2listener#start_document()","rexml::sax2listener#start_element()","rexml::parsers::pullevent#start_element?()","rexml::sax2listener#start_prefix_mapping()","rexml::functions::starts_with()","rexml::parsers::baseparser#stream=()","rexml::functions::string()","rexml::functions::string_length()","rexml::functions::string_value()","rexml::functions::substring()","rexml::functions::substring_after()","rexml::functions::substring_before()","rexml::functions::sum()","rexml::doctype#system()","rexml::streamlistener#tag_end()","rexml::streamlistener#tag_start()","rexml::parsers::enumerabletally#tally()","rexml::element#text()","rexml::functions::text()","rexml::streamlistener#text()","rexml::element#text=()","rexml::light::node#text=()","rexml::parsers::pullevent#text?()","rexml::element#texts()","rexml::attributes#to_a()","rexml::elements#to_a()","rexml::parent#to_a()","rexml::attribute#to_s()","rexml::cdata#to_s()","rexml::dtd::entitydecl#to_s()","rexml::dtd::notationdecl#to_s()","rexml::declaration#to_s()","rexml::entity#to_s()","rexml::externalentity#to_s()","rexml::light::node#to_s()","rexml::node#to_s()","rexml::notationdecl#to_s()","rexml::output#to_s()","rexml::parseexception#to_s()","rexml::text#to_s()","rexml::validation::event#to_s()","rexml::validation::ref#to_s()","rexml::validation::state#to_s()","rexml::attribute#to_string()","rexml::functions::translate()","rexml::functions::true()","rexml::parsers::baseparser#unnormalize()","rexml::entity#unnormalized()","rexml::parent#unshift()","rexml::parsers::baseparser#unshift()","rexml::parsers::pullparser#unshift()","rexml::validation::validator#validate()","rexml::attribute#value()","rexml::cdata#value()","rexml::text#value()","rexml::text#value=()","rexml::functions::variables()","rexml::functions::variables=()","rexml::xpathparser#variables=()","rexml::document#version()","rexml::element#whitespace()","rexml::text#wrap()","rexml::attlistdecl#write()","rexml::attribute#write()","rexml::cdata#write()","rexml::comment#write()","rexml::dtd::entitydecl#write()","rexml::dtd::notationdecl#write()","rexml::declaration#write()","rexml::doctype#write()","rexml::document#write()","rexml::element#write()","rexml::entity#write()","rexml::externalentity#write()","rexml::formatters::default#write()","rexml::instruction#write()","rexml::notationdecl#write()","rexml::referencewriter#write()","rexml::text#write()","rexml::xmldecl#write()","rexml::formatters::default#write_cdata()","rexml::formatters::pretty#write_cdata()","rexml::formatters::default#write_comment()","rexml::formatters::pretty#write_comment()","rexml::formatters::default#write_document()","rexml::formatters::pretty#write_document()","rexml::formatters::default#write_element()","rexml::formatters::pretty#write_element()","rexml::formatters::transitive#write_element()","rexml::formatters::default#write_instruction()","rexml::formatters::default#write_text()","rexml::formatters::pretty#write_text()","rexml::formatters::transitive#write_text()","rexml::text#write_with_substitution()","rexml::document#xml_decl()","rexml::sax2listener#xmldecl()","rexml::streamlistener#xmldecl()","rexml::xmldecl#xmldecl()","rexml::parsers::pullevent#xmldecl?()","rexml::attribute#xpath()","rexml::element#xpath()","rexml::text#xpath()","","","","","","","","","","","","","","","",""],"info":[["REXML","","REXML.html","","Module REXML provides classes and methods for parsing, editing, and generating XML.\n
Implementation\n
REXML: …\n"],["REXML::AttlistDecl","","REXML/AttlistDecl.html","","
This class needs:\n
Documentation\n
Work! Not all types of attlists are intelligently parsed, so we just\n"],["REXML::Attribute","","REXML/Attribute.html","","
Defines an Element Attribute; IE, a attribute=value pair, as in: <element attribute=“value”/>. …\n"],["REXML::Attributes","","REXML/Attributes.html","","
A class that defines the set of Attributes of an Element and provides operations for accessing elements …\n"],["REXML::CData","","REXML/CData.html","",""],["REXML::Child","","REXML/Child.html","","
A Child object is something contained by a parent, and this class contains methods to support that. …\n"],["REXML::Comment","","REXML/Comment.html","","
Represents an XML comment; that is, text between <!– … –>\n"],["REXML::DClonable","","REXML/DClonable.html","",""],["REXML::DTD","","REXML/DTD.html","",""],["REXML::DTD::AttlistDecl","","REXML/DTD/AttlistDecl.html","",""],["REXML::DTD::ElementDecl","","REXML/DTD/ElementDecl.html","",""],["REXML::DTD::EntityDecl","","REXML/DTD/EntityDecl.html","",""],["REXML::DTD::NotationDecl","","REXML/DTD/NotationDecl.html","",""],["REXML::DTD::Parser","","REXML/DTD/Parser.html","",""],["REXML::Declaration","","REXML/Declaration.html","","
This is an abstract class. You never use this directly; it serves as a parent class for the specific …\n"],["REXML::DocType","","REXML/DocType.html","","
Represents an XML DOCTYPE declaration; that is, the contents of <!DOCTYPE … >. DOCTYPES can …\n"],["REXML::Document","","REXML/Document.html","","
Represents an XML document.\n
A document may have:\n
A single child that may be accessed via method #root. …\n"],["REXML::Element","","REXML/Element.html","","
An REXML::Element object represents an XML element.\n
An element:\n
Has a name (string).\n"],["REXML::ElementDecl","","REXML/ElementDecl.html","",""],["REXML::Elements","","REXML/Elements.html","","
A class which provides filtering of children for Elements, and XPath search support. You are expected …\n"],["REXML::Encoding","","REXML/Encoding.html","",""],["REXML::Entity","","REXML/Entity.html","",""],["REXML::EntityConst","","REXML/EntityConst.html","","
This is a set of entity constants – the ones defined in the XML specification. These are
gt
,lt
,amp
…\n"],["REXML::ExternalEntity","","REXML/ExternalEntity.html","",""],["REXML::Formatters","","REXML/Formatters.html","",""],["REXML::Formatters::Default","","REXML/Formatters/Default.html","",""],["REXML::Formatters::Pretty","","REXML/Formatters/Pretty.html","","Pretty-prints an XML document. This destroys whitespace in text nodes and will insert carriage returns …\n"],["REXML::Formatters::Transitive","","REXML/Formatters/Transitive.html","","
The Transitive formatter writes an XML document that parses to an identical document as the source document. …\n"],["REXML::Functions","","REXML/Functions.html","","
If you add a method, keep in mind two things: (1) the first argument will always be a list of nodes from …\n"],["REXML::IOSource","","REXML/IOSource.html","","
A Source that wraps an IO. See the Source class for method documentation\n"],["REXML::Instruction","","REXML/Instruction.html","","
Represents an XML Instruction; IE, <? … ?> TODO: Add parent arg (3rd arg) to constructor\n"],["REXML::Light","","REXML/Light.html","",""],["REXML::Light::Node","","REXML/Light/Node.html","","
Represents a tagged XML element. Elements are characterized by having children, attributes, and names, …\n"],["REXML::Namespace","","REXML/Namespace.html","","
Adds named attributes to an object.\n"],["REXML::Node","","REXML/Node.html","","
Represents a node in the tree. Nodes are never encountered except as superclasses of other objects. …\n"],["REXML::NotationDecl","","REXML/NotationDecl.html","",""],["REXML::Output","","REXML/Output.html","",""],["REXML::Parent","","REXML/Parent.html","","
A parent has children, and has methods for accessing them. The Parent class is never encountered except …\n"],["REXML::ParseException","","REXML/ParseException.html","",""],["REXML::Parsers","","REXML/Parsers.html","",""],["REXML::Parsers::BaseParser","","REXML/Parsers/BaseParser.html","","
Using the Pull Parser\n
This API is experimental, and subject to change.\n\n
parser = PullParser.new( "<a>text<b ...\n"],["REXML::Parsers::BaseParser::Private","","REXML/Parsers/BaseParser/Private.html","",""],["REXML::Parsers::EnumerableTally","","REXML/Parsers/EnumerableTally.html","",""],["REXML::Parsers::LightParser","","REXML/Parsers/LightParser.html","",""],["REXML::Parsers::PullEvent","","REXML/Parsers/PullEvent.html","","A parsing event. The contents of the event are accessed as an +Array?, and the type is given either …\n"],["REXML::Parsers::PullParser","","REXML/Parsers/PullParser.html","","
Using the Pull Parser\n
This API is experimental, and subject to change.\n\n
parser = PullParser.new( "<a>text<b ...\n"],["REXML::Parsers::SAX2Parser","","REXML/Parsers/SAX2Parser.html","","SAX2Parser\n"],["REXML::Parsers::StreamParser","","REXML/Parsers/StreamParser.html","",""],["REXML::Parsers::StringScannerCaptures","","REXML/Parsers/StringScannerCaptures.html","",""],["REXML::Parsers::TreeParser","","REXML/Parsers/TreeParser.html","",""],["REXML::Parsers::UltraLightParser","","REXML/Parsers/UltraLightParser.html","",""],["REXML::Parsers::XPathParser","","REXML/Parsers/XPathParser.html","","
You don’t want to use this class. Really. Use XPath, which is a wrapper for this class. Believe …\n"],["REXML::QuickPath","","REXML/QuickPath.html","",""],["REXML::ReferenceWriter","","REXML/ReferenceWriter.html","",""],["REXML::SAX2Listener","","REXML/SAX2Listener.html","","
A template for stream parser listeners. Note that the declarations (attlistdecl, elementdecl, etc) are …\n"],["REXML::Security","","REXML/Security.html","",""],["REXML::Source","","REXML/Source.html","","
A Source can be searched for patterns, and wraps buffers and other objects and provides consumption of …\n"],["REXML::Source::Private","","REXML/Source/Private.html","",""],["REXML::SourceFactory","","REXML/SourceFactory.html","","
Generates Source-s. USE THIS CLASS.\n"],["REXML::StreamListener","","REXML/StreamListener.html","","
A template for stream parser listeners. Note that the declarations (attlistdecl, elementdecl, etc) are …\n"],["REXML::StringScannerCheckScanString","","REXML/StringScannerCheckScanString.html","",""],["REXML::Text","","REXML/Text.html","","
Represents text nodes in an XML document\n"],["REXML::UndefinedNamespaceException","","REXML/UndefinedNamespaceException.html","",""],["REXML::Validation","","REXML/Validation.html","",""],["REXML::Validation::Choice","","REXML/Validation/Choice.html","",""],["REXML::Validation::Event","","REXML/Validation/Event.html","",""],["REXML::Validation::Interleave","","REXML/Validation/Interleave.html","",""],["REXML::Validation::OneOrMore","","REXML/Validation/OneOrMore.html","",""],["REXML::Validation::Optional","","REXML/Validation/Optional.html","",""],["REXML::Validation::Ref","","REXML/Validation/Ref.html","",""],["REXML::Validation::RelaxNG","","REXML/Validation/RelaxNG.html","","
Implemented:\n
empty\n
element\n"],["REXML::Validation::Sequence","","REXML/Validation/Sequence.html","",""],["REXML::Validation::State","","REXML/Validation/State.html","",""],["REXML::Validation::ValidationException","","REXML/Validation/ValidationException.html","",""],["REXML::Validation::Validator","","REXML/Validation/Validator.html","",""],["REXML::Validation::ZeroOrMore","","REXML/Validation/ZeroOrMore.html","",""],["REXML::XMLDecl","","REXML/XMLDecl.html","","
NEEDS DOCUMENTATION\n"],["REXML::XMLTokens","","REXML/XMLTokens.html","","
Defines a number of tokens used for parsing XML. Not for general consumption.\n"],["REXML::XPath","","REXML/XPath.html","","
Wrapper class. Use this class to access the XPath functions.\n"],["REXML::XPathNode","","REXML/XPathNode.html","","
@private\n"],["REXML::XPathParser","","REXML/XPathParser.html","","
You don’t want to use this class. Really. Use XPath, which is a wrapper for this class. Believe …\n"],["<<","REXML::Attributes","REXML/Attributes.html#method-i-3C-3C","( attribute )",""],["<<","REXML::Document","REXML/Document.html#method-i-3C-3C","( child )",""],["<<","REXML::Elements","REXML/Elements.html#method-i-3C-3C","(element=nil)",""],["<<","REXML::Light::Node","REXML/Light/Node.html#method-i-3C-3C","(element)","
Append a child to this element, optionally under a provided namespace. The namespace argument is ignored …\n"],["<<","REXML::Output","REXML/Output.html#method-i-3C-3C","( content )",""],["<<","REXML::Parent","REXML/Parent.html#method-i-3C-3C","( object )",""],["<<","REXML::Text","REXML/Text.html#method-i-3C-3C","( to_append )","
Appends text to this text node. The text is appended in the
raw
mode of this text node.\n
returns
the text …\n"],["<<","REXML::Validation::Choice","REXML/Validation/Choice.html#method-i-3C-3C","( event )",""],["<<","REXML::Validation::State","REXML/Validation/State.html#method-i-3C-3C","( event )",""],["<=>","REXML::Comment","REXML/Comment.html#method-i-3C-3D-3E","(other)","Compares this Comment to another; the contents of the comment are used in the comparison.\n"],["<=>","REXML::Text","REXML/Text.html#method-i-3C-3D-3E","( other )","
other
a String or a Textreturns
the result of (to_s <=> arg.to_s)\n"],["==","REXML::Attribute","REXML/Attribute.html#method-i-3D-3D","( other )","Returns true if other is an Attribute and has the same name and value, false otherwise.\n"],["==","REXML::Comment","REXML/Comment.html#method-i-3D-3D","( other )","
Compares this Comment to another; the contents of the comment are used in the comparison.\n"],["==","REXML::Instruction","REXML/Instruction.html#method-i-3D-3D","( other )","
@return true if other is an Instruction, and the content and target of the other matches the target and …\n"],["==","REXML::Validation::Event","REXML/Validation/Event.html#method-i-3D-3D","( other )",""],["==","REXML::XMLDecl","REXML/XMLDecl.html#method-i-3D-3D","( other )",""],["=~","REXML::Light::Node","REXML/Light/Node.html#method-i-3D~","( path )",""],["[]","REXML::AttlistDecl","REXML/AttlistDecl.html#method-i-5B-5D","(key)","
Access the attlist attribute/value pairs.\n\n
value = attlist_decl[ attribute_name ]\n\n"],["[]","REXML::Attributes","REXML/Attributes.html#method-i-5B-5D","(name)","Returns the value for the attribute given by
name
, if it exists; otherwisenil
. The value returned is …\n"],["[]","REXML::Element","REXML/Element.html#method-i-5B-5D","(name_or_index)","With integer argument
index
given, returns the child at offsetindex
, ornil
if none:\n\nd = REXML::Document.new ...\n\n"],["[]","REXML::Elements","REXML/Elements.html#method-i-5B-5D","( index, name=nil)","Returns the first Element object selected by the arguments, if any found, or
nil
if none found.\nNotes: …\n"],["[]","REXML::Light::Node","REXML/Light/Node.html#method-i-5B-5D","( reference, ns=nil )",""],["[]","REXML::Parent","REXML/Parent.html#method-i-5B-5D","( index )","
Fetches a child at a given index @param index the Integer index of the child to fetch\n"],["[]","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-5B-5D","( start, endd=nil)",""],["[]=","REXML::Attributes","REXML/Attributes.html#method-i-5B-5D-3D","( name, value )","
When
value
is non-nil
, assigns that to the attribute for the givenname
, overwriting the previous value …\n"],["[]=","REXML::Elements","REXML/Elements.html#method-i-5B-5D-3D","( index, element )","Replaces or adds an element.\n
When
eles[index]
exists, replaces it withreplacement_element
and returns …\n"],["[]=","REXML::Light::Node","REXML/Light/Node.html#method-i-5B-5D-3D","( reference, ns, value=nil )","Doesn’t handle namespaces yet\n"],["[]=","REXML::Parent","REXML/Parent.html#method-i-5B-5D-3D","( *args )","
Set an index entry. See Array.[]= @param index the index of the element to set @param opt either the …\n"],["[]=","REXML::XPathParser","REXML/XPathParser.html#method-i-5B-5D-3D","( variable_name, value )",""],["abbreviate","REXML::Parsers::XPathParser","REXML/Parsers/XPathParser.html#method-i-abbreviate","(path_or_parsed)",""],["add","REXML::Attributes","REXML/Attributes.html#method-i-add","( attribute )","
Adds attribute
attribute
, replacing the previous attribute of the same name if it exists; returnsattribute
…\n"],["add","REXML::DocType","REXML/DocType.html#method-i-add","(child)",""],["add","REXML::Document","REXML/Document.html#method-i-add","( child )","Adds an object to the document; returns
self
.\nWhen argument
xml_decl
is given, it must be an REXML::XMLDecl …\n"],["add","REXML::Elements","REXML/Elements.html#method-i-add","(element=nil)","Adds an element; returns the element added.\n
With no argument, creates and adds a new element. The new …\n"],["add","REXML::Parent","REXML/Parent.html#method-i-add","( object )",""],["add_attribute","REXML::Element","REXML/Element.html#method-i-add_attribute","( key, value=nil )","
Adds an attribute to this element, overwriting any existing attribute by the same name.\n
With string argument …\n"],["add_attributes","REXML::Element","REXML/Element.html#method-i-add_attributes","(hash)","
Adds zero or more attributes to the element; returns the argument.\n
If hash argument
hash
is given, each …\n"],["add_element","REXML::Document","REXML/Document.html#method-i-add_element","(arg=nil, arg2=nil)","Adds an element to the document by calling REXML::Element.add_element:\n\n
REXML::Element.add_element(name_or_element, ...\n"],["add_element","REXML::Element","REXML/Element.html#method-i-add_element","(element, attrs=nil)","Adds a child element, optionally setting attributes on the added element; returns the added element. …\n"],["add_event_to_arry","REXML::Validation::Choice","REXML/Validation/Choice.html#method-i-add_event_to_arry","( arry, evt )",""],["add_event_to_arry","REXML::Validation::State","REXML/Validation/State.html#method-i-add_event_to_arry","( arry, evt )",""],["add_listener","REXML::Parsers::BaseParser","REXML/Parsers/BaseParser.html#method-i-add_listener","( listener )",""],["add_listener","REXML::Parsers::LightParser","REXML/Parsers/LightParser.html#method-i-add_listener","( listener )",""],["add_listener","REXML::Parsers::PullParser","REXML/Parsers/PullParser.html#method-i-add_listener","( listener )",""],["add_listener","REXML::Parsers::SAX2Parser","REXML/Parsers/SAX2Parser.html#method-i-add_listener","( listener )",""],["add_listener","REXML::Parsers::StreamParser","REXML/Parsers/StreamParser.html#method-i-add_listener","( listener )",""],["add_listener","REXML::Parsers::TreeParser","REXML/Parsers/TreeParser.html#method-i-add_listener","( listener )",""],["add_listener","REXML::Parsers::UltraLightParser","REXML/Parsers/UltraLightParser.html#method-i-add_listener","( listener )",""],["add_namespace","REXML::Element","REXML/Element.html#method-i-add_namespace","( prefix, uri=nil )","
Adds a namespace to the element; returns
self
.\nWith the single argument
prefix
, adds a namespace using …\n"],["add_text","REXML::Element","REXML/Element.html#method-i-add_text","( text )","Adds text to the element.\n
When string argument
string
is given, returnsnil
.\nIf the element has no child …\n"],["attlistdecl","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-attlistdecl","(element, pairs, contents)","
If a doctype includes an ATTLIST declaration, it will cause this method to be called. The content is …\n"],["attlistdecl","REXML::StreamListener","REXML/StreamListener.html#method-i-attlistdecl","(element_name, attributes, raw_content)","
If a doctype includes an ATTLIST declaration, it will cause this method to be called. The content is …\n"],["attlistdecl?","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-attlistdecl-3F","()","
Content: [ String text ]\n"],["attribute","REXML::Element","REXML/Element.html#method-i-attribute","( name, namespace=nil )","
Returns the string value for the given attribute name.\n
With only argument
name
given, returns the value …\n"],["attribute","REXML::QuickPath","REXML/QuickPath.html#method-c-attribute","( name )",""],["attribute_of","REXML::DocType","REXML/DocType.html#method-i-attribute_of","(element, attribute)",""],["attributes_of","REXML::DocType","REXML/DocType.html#method-i-attributes_of","(element)",""],["axe","REXML::QuickPath","REXML/QuickPath.html#method-c-axe","( elements, axe_name, rest )",""],["boolean","REXML::Functions","REXML/Functions.html#method-c-boolean","(object=@@context[:node])",""],["buffer","REXML::Source","REXML/Source.html#method-i-buffer","()","The current buffer (what we’re going to read next)\n"],["buffer_encoding=","REXML::Source","REXML/Source.html#method-i-buffer_encoding-3D","(encoding)",""],["bytes","REXML::Child","REXML/Child.html#method-i-bytes","()","
This doesn’t yet handle encodings\n"],["captures","REXML::Parsers::StringScannerCaptures","REXML/Parsers/StringScannerCaptures.html#method-i-captures","()",""],["cdata","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-cdata","(content)","
Called when <![CDATA[ … ]]> is encountered in a document. @p content “…”\n"],["cdata","REXML::StreamListener","REXML/StreamListener.html#method-i-cdata","(content)","
Called when <![CDATA[ … ]]> is encountered in a document. @p content “…”\n"],["cdata?","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-cdata-3F","()","
Content: [ String text ]\n"],["cdatas","REXML::Element","REXML/Element.html#method-i-cdatas","()","
Returns a frozen array of the REXML::CData children of the element:\n\n
xml_string = <<-EOT\n <root>\n <![CDATA[foo]]> ...\n"],["ceiling","REXML::Functions","REXML/Functions.html#method-c-ceiling","( number )",""],["characters","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-characters","(text)",""],["check","REXML::StringScannerCheckScanString","REXML/StringScannerCheckScanString.html#method-i-check","(pattern)",""],["check","REXML::Text","REXML/Text.html#method-c-check","(string, pattern, doctype)","check for illegal characters\n"],["children","REXML::Light::Node","REXML/Light/Node.html#method-i-children","()",""],["children","REXML::Parent","REXML/Parent.html#method-i-children","()",""],["clone","REXML::Attribute","REXML/Attribute.html#method-i-clone","()","
Returns a copy of this attribute\n"],["clone","REXML::CData","REXML/CData.html#method-i-clone","()","
Make a copy of this object\n
Examples\n\n
c = CData.new( "Some text" )\nd = c.clone\nd.to_s # -> "Some text"\n\n"],["clone","REXML::Comment","REXML/Comment.html#method-i-clone","()",""],["clone","REXML::DocType","REXML/DocType.html#method-i-clone","()",""],["clone","REXML::Document","REXML/Document.html#method-i-clone","()","Returns the new document resulting from executing
Document.new(self)
. See Document.new.\n"],["clone","REXML::Element","REXML/Element.html#method-i-clone","()","Returns a shallow copy of the element, containing the name and attributes, but not the parent or children: …\n"],["clone","REXML::Instruction","REXML/Instruction.html#method-i-clone","()",""],["clone","REXML::Text","REXML/Text.html#method-i-clone","()",""],["clone","REXML::XMLDecl","REXML/XMLDecl.html#method-i-clone","()",""],["collect","REXML::Elements","REXML/Elements.html#method-i-collect","( xpath=nil )","
Iterates over the elements; returns the array of block return values.\n
With no argument, iterates over …\n"],["comment","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-comment","(comment)","
Called when a comment is encountered. @p comment The content of the comment\n"],["comment","REXML::StreamListener","REXML/StreamListener.html#method-i-comment","(comment)","
Called when a comment is encountered. @p comment The content of the comment\n"],["comment?","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-comment-3F","()","
Content: [ String text ]\n"],["comments","REXML::Element","REXML/Element.html#method-i-comments","()","
Returns a frozen array of the REXML::Comment children of the element:\n\n
xml_string = <<-EOT\n <root>\n ...\n"],["compare_language","REXML::Functions","REXML/Functions.html#method-c-compare_language","(lang1, lang2)",""],["concat","REXML::Functions","REXML/Functions.html#method-c-concat","( *objects )",""],["contains","REXML::Functions","REXML/Functions.html#method-c-contains","( string, test )","Fixed by Mike Stok\n"],["context","REXML::DocType","REXML/DocType.html#method-i-context","()",""],["context","REXML::ParseException","REXML/ParseException.html#method-i-context","()",""],["context=","REXML::Functions","REXML/Functions.html#method-c-context-3D","(value)",""],["count","REXML::Functions","REXML/Functions.html#method-c-count","( node_set )","
Returns the size of the given list of nodes.\n"],["create_from","REXML::SourceFactory","REXML/SourceFactory.html#method-c-create_from","(arg)","
Generates a Source object @param arg Either a String, or an IO @return a Source, or nil if a bad argument …\n"],["current_line","REXML::IOSource","REXML/IOSource.html#method-i-current_line","()","
@return the current line in the source\n"],["current_line","REXML::Source","REXML/Source.html#method-i-current_line","()","
@return the current line in the source\n"],["dclone","REXML::DClonable","REXML/DClonable.html#method-i-dclone","()","
provides a unified
clone
operation, for REXML::XPathParser to use across multiple Object types\n"],["deafen","REXML::Parsers::SAX2Parser","REXML/Parsers/SAX2Parser.html#method-i-deafen","( listener=nil, &blok )",""],["decode","REXML::Encoding","REXML/Encoding.html#method-i-decode","(string)",""],["deep_clone","REXML::Parent","REXML/Parent.html#method-i-deep_clone","()","Deeply clones this object. This creates a complete duplicate of this Parent, including all descendants. …\n"],["default","REXML::XMLDecl","REXML/XMLDecl.html#method-c-default","()","
Only use this if you do not want the XML declaration to be written; this object is ignored by the XML …\n"],["delete","REXML::Attributes","REXML/Attributes.html#method-i-delete","( attribute )","
Removes a specified attribute if it exists; returns the attributes’ element.\n
When string argument …\n"],["delete","REXML::Elements","REXML/Elements.html#method-i-delete","(element)","
Removes an element; returns the removed element, or
nil
if none removed.\nWith integer argument
index
given, …\n"],["delete","REXML::Parent","REXML/Parent.html#method-i-delete","( object )",""],["delete_all","REXML::Attributes","REXML/Attributes.html#method-i-delete_all","( name )","Removes all attributes matching the given
name
; returns an array of the removed attributes:\n\nxml_string ...\n\n"],["delete_all","REXML::Elements","REXML/Elements.html#method-i-delete_all","( xpath )","Removes all elements found via the given
xpath
; returns the array of removed elements, if any, else …\n"],["delete_at","REXML::Parent","REXML/Parent.html#method-i-delete_at","( index )",""],["delete_attribute","REXML::Element","REXML/Element.html#method-i-delete_attribute","(key)","Removes a named attribute if it exists; returns the removed attribute if found, otherwise
nil
:\n\ne = REXML::Element.new('foo') ...\n\n"],["delete_element","REXML::Element","REXML/Element.html#method-i-delete_element","(element)","Deletes a child element.\n
When 1-based integer argument
index
is given, removes and returns the child element …\n"],["delete_if","REXML::Parent","REXML/Parent.html#method-i-delete_if","( &block )",""],["delete_namespace","REXML::Element","REXML/Element.html#method-i-delete_namespace","(namespace=\"xmlns\")","Removes a namespace from the element.\n
With no argument, removes the default namespace:\n\n
d = REXML::Document.new ...\n\n"],["doctype","REXML::Attribute","REXML/Attribute.html#method-i-doctype","()",""],["doctype","REXML::Document","REXML/Document.html#method-i-doctype","()","Returns the DocType object for the document, if it exists, otherwise
nil
:\n\nd = REXML::Document.new('<!DOCTYPE ...\n"],["doctype","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-doctype","(name, pub_sys, long_name, uri)","Handles a doctype declaration. Any attributes of the doctype which are not supplied will be nil. # …\n"],["doctype","REXML::StreamListener","REXML/StreamListener.html#method-i-doctype","(name, pub_sys, long_name, uri)","
Handles a doctype declaration. Any attributes of the doctype which are not supplied will be nil. # …\n"],["doctype","REXML::Text","REXML/Text.html#method-i-doctype","()",""],["doctype?","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-doctype-3F","()","
Content: [ String name, String pub_sys, String long_name, String uri ]\n"],["doctype_end","REXML::StreamListener","REXML/StreamListener.html#method-i-doctype_end","()","
Called when the doctype is done\n"],["document","REXML::Child","REXML/Child.html#method-i-document","()","
Returns — the document this child belongs to, or nil if this child\n\n
belongs to no document\n"],["document","REXML::Document","REXML/Document.html#method-i-document","()",""],["document","REXML::Element","REXML/Element.html#method-i-document","()","
If the element is part of a document, returns that document:\n\n
d = REXML::Document.new('<a><b><c/></b></a>') ...\n\n"],["done?","REXML::Validation::Event","REXML/Validation/Event.html#method-i-done-3F","()",""],["dowrite","REXML::XMLDecl","REXML/XMLDecl.html#method-i-dowrite","()",""],["drop_parsed_content","REXML::Source","REXML/Source.html#method-i-drop_parsed_content","()",""],["dump","REXML::Validation::Validator","REXML/Validation/Validator.html#method-i-dump","()",""],["each","REXML::AttlistDecl","REXML/AttlistDecl.html#method-i-each","(&block)","Iterate over the key/value pairs:\n\n
attlist_decl.each { |attribute_name, attribute_value| ... }\n"],["each","REXML::Attributes","REXML/Attributes.html#method-i-each","()","Calls the given block with each expanded-name/value pair:\n\n
xml_string = <<-EOT\n <root xmlns:foo="http://foo" ...\n"],["each","REXML::Elements","REXML/Elements.html#method-i-each","( xpath=nil )","Iterates over the elements.\n
With no argument, calls the block with each element:\n\n
d = REXML::Document.new(xml_string) ...\n\n"],["each","REXML::Light::Node","REXML/Light/Node.html#method-i-each","()",""],["each","REXML::Parent","REXML/Parent.html#method-i-each","(&block)",""],["each","REXML::Parsers::PullParser","REXML/Parsers/PullParser.html#method-i-each","()",""],["each","REXML::QuickPath","REXML/QuickPath.html#method-c-each","(element, path, namespaces=EMPTY_HASH, &block)",""],["each","REXML::XPath","REXML/XPath.html#method-c-each","(element, path=nil, namespaces=nil, variables={}, options={}, &block)","Iterates over nodes that match the given path, calling the supplied block with the match.\n
element — The …\n"],["each_attribute","REXML::Attributes","REXML/Attributes.html#method-i-each_attribute","()","
Calls the given block with each REXML::Attribute object:\n\n
xml_string = <<-EOT\n <root xmlns:foo="http://foo" ...\n"],["each_child","REXML::Parent","REXML/Parent.html#method-i-each_child","(&block)",""],["each_element","REXML::Element","REXML/Element.html#method-i-each_element","( xpath=nil )","Calls the given block with each child element:\n\n
d = REXML::Document.new '<a><b>b</b><c>b</c><d>d</d><e/></a>' ...\n\n"],["each_element_with_attribute","REXML::Element","REXML/Element.html#method-i-each_element_with_attribute","( key, value=nil, max=0, name=nil )","Calls the given block with each child element that meets given criteria.\n
When only string argument
attr_name
…\n"],["each_element_with_text","REXML::Element","REXML/Element.html#method-i-each_element_with_text","( text=nil, max=0, name=nil )","Calls the given block with each child element that meets given criteria.\n
With no arguments, calls the …\n"],["each_index","REXML::Parent","REXML/Parent.html#method-i-each_index","( &block )",""],["each_recursive","REXML::Node","REXML/Node.html#method-i-each_recursive","()","
Visit all subnodes of
self
recursively\n"],["element=","REXML::Attribute","REXML/Attribute.html#method-i-element-3D","( element )","Sets the element of which this object is an attribute. Normally, this is not directly called.\n
Returns …\n"],["elementdecl","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-elementdecl","(content)","
<!ELEMENT …>\n"],["elementdecl","REXML::StreamListener","REXML/StreamListener.html#method-i-elementdecl","(content)","
<!ELEMENT …>\n"],["elementdecl?","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-elementdecl-3F","()","
Content: [ String text ]\n"],["empty?","REXML::Elements","REXML/Elements.html#method-i-empty-3F","()","
Returns
true
if there are no children,false
otherwise.\n\nd = REXML::Document.new('')\nd.elements.empty? ...\n\n"],["empty?","REXML::IOSource","REXML/IOSource.html#method-i-empty-3F","()",""],["empty?","REXML::Parsers::BaseParser","REXML/Parsers/BaseParser.html#method-i-empty-3F","()","Returns true if there are no more events\n"],["empty?","REXML::Source","REXML/Source.html#method-i-empty-3F","()","
@return true if the Source is exhausted\n"],["empty?","REXML::Text","REXML/Text.html#method-i-empty-3F","()",""],["encode","REXML::Encoding","REXML/Encoding.html#method-i-encode","(string)",""],["encoding","REXML::Document","REXML/Document.html#method-i-encoding","()","
Returns the XMLDecl encoding of the document, if it has been set, otherwise the default encoding:\n\n
d = ...\n"],["encoding=","REXML::Encoding","REXML/Encoding.html#method-i-encoding-3D","(encoding)",""],["encoding=","REXML::Source","REXML/Source.html#method-i-encoding-3D","(enc)","Inherited from Encoding Overridden to support optimized en/decoding\n"],["encoding=","REXML::XMLDecl","REXML/XMLDecl.html#method-i-encoding-3D","( enc )",""],["end_document","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-end_document","()",""],["end_element","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-end_element","(uri, localname, qname)",""],["end_element?","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-end_element-3F","()","
Content: [ String tag_name ]\n"],["end_prefix_mapping","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-end_prefix_mapping","(prefix)",""],["ensure_buffer","REXML::IOSource","REXML/IOSource.html#method-i-ensure_buffer","()",""],["ensure_buffer","REXML::Source","REXML/Source.html#method-i-ensure_buffer","()",""],["entity","REXML::DocType","REXML/DocType.html#method-i-entity","( name )",""],["entity","REXML::Parsers::BaseParser","REXML/Parsers/BaseParser.html#method-i-entity","( reference, entities )",""],["entity","REXML::StreamListener","REXML/StreamListener.html#method-i-entity","(content)","
Called when %foo; is encountered in a doctype declaration. @p content “foo”\n"],["entity?","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-entity-3F","()","
Content: [ String text ]\n"],["entity_expansion_count","REXML::Parsers::PullParser","REXML/Parsers/PullParser.html#method-i-entity_expansion_count","()",""],["entity_expansion_count","REXML::Parsers::SAX2Parser","REXML/Parsers/SAX2Parser.html#method-i-entity_expansion_count","()",""],["entity_expansion_count","REXML::Parsers::StreamParser","REXML/Parsers/StreamParser.html#method-i-entity_expansion_count","()",""],["entity_expansion_limit","REXML::Document","REXML/Document.html#method-c-entity_expansion_limit","()","
Get the entity expansion limit. By default the limit is set to 10000.\n
Deprecated. Use REXML::Security.entity_expansion_limit= …\n"],["entity_expansion_limit","REXML::Security","REXML/Security.html#method-c-entity_expansion_limit","()","
Get the entity expansion limit. By default the limit is set to 10000.\n"],["entity_expansion_limit=","REXML::Document","REXML/Document.html#method-c-entity_expansion_limit-3D","( val )","
Set the entity expansion limit. By default the limit is set to 10000.\n
Deprecated. Use REXML::Security.entity_expansion_limit= …\n"],["entity_expansion_limit=","REXML::Security","REXML/Security.html#method-c-entity_expansion_limit-3D","( val )","
Set the entity expansion limit. By default the limit is set to 10000.\n"],["entity_expansion_text_limit","REXML::Document","REXML/Document.html#method-c-entity_expansion_text_limit","()","
Get the entity expansion limit. By default the limit is set to 10240.\n
Deprecated. Use REXML::Security.entity_expansion_text_limit …\n"],["entity_expansion_text_limit","REXML::Security","REXML/Security.html#method-c-entity_expansion_text_limit","()","
Get the entity expansion limit. By default the limit is set to 10240.\n"],["entity_expansion_text_limit=","REXML::Document","REXML/Document.html#method-c-entity_expansion_text_limit-3D","( val )","
Set the entity expansion limit. By default the limit is set to 10240.\n
Deprecated. Use REXML::Security.entity_expansion_text_limit= …\n"],["entity_expansion_text_limit=","REXML::Security","REXML/Security.html#method-c-entity_expansion_text_limit-3D","( val )","
Set the entity expansion limit. By default the limit is set to 10240.\n"],["entitydecl","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-entitydecl","(declaration)","
<!ENTITY …> The argument passed to this method is an array of the entity declaration. It can …\n"],["entitydecl","REXML::StreamListener","REXML/StreamListener.html#method-i-entitydecl","(content)","
<!ENTITY …> The argument passed to this method is an array of the entity declaration. It can …\n"],["entitydecl?","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-entitydecl-3F","()","
Due to the wonders of DTDs, an entity declaration can be just about anything. There’s no way to …\n"],["error?","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-error-3F","()",""],["event_type","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-event_type","()",""],["expand","REXML::Parsers::XPathParser","REXML/Parsers/XPathParser.html#method-i-expand","(path_or_parsed)",""],["expand_ref_in","REXML::Validation::State","REXML/Validation/State.html#method-i-expand_ref_in","( arry, ind )",""],["expanded_name","REXML::Document","REXML/Document.html#method-i-expanded_name","()","
Returns an empty string.\n"],["expected","REXML::Validation::Choice","REXML/Validation/Choice.html#method-i-expected","()",""],["expected","REXML::Validation::Interleave","REXML/Validation/Interleave.html#method-i-expected","()",""],["expected","REXML::Validation::OneOrMore","REXML/Validation/OneOrMore.html#method-i-expected","()",""],["expected","REXML::Validation::Optional","REXML/Validation/Optional.html#method-i-expected","()",""],["expected","REXML::Validation::State","REXML/Validation/State.html#method-i-expected","()",""],["expected","REXML::Validation::ZeroOrMore","REXML/Validation/ZeroOrMore.html#method-i-expected","()",""],["false","REXML::Functions","REXML/Functions.html#method-c-false","( )","
UNTESTED\n"],["filter","REXML::QuickPath","REXML/QuickPath.html#method-c-filter","(elements, path)","
Given an array of nodes it filters the array based on the path. The result is that when this method returns, …\n"],["find_first_recursive","REXML::Node","REXML/Node.html#method-i-find_first_recursive","()","
Find (and return) first subnode (recursively) for which the block evaluates to true. Returns
nil
if none …\n"],["first","REXML::QuickPath","REXML/QuickPath.html#method-c-first","(element, path, namespaces=EMPTY_HASH)",""],["first","REXML::XPath","REXML/XPath.html#method-c-first","(element, path=nil, namespaces=nil, variables={}, options={})","Finds and returns the first node that matches the supplied xpath.\n
element — The context element\n
path — The …\n"],["first","REXML::XPathParser","REXML/XPathParser.html#method-i-first","( path_stack, node )","
Performs a depth-first (document order) XPath search, and returns the first match. This is the fastest, …\n"],["floor","REXML::Functions","REXML/Functions.html#method-c-floor","( number )",""],["fully_expanded_name","REXML::Namespace","REXML/Namespace.html#method-i-fully_expanded_name","()","
Fully expand the name, even if the prefix wasn’t specified in the source file.\n"],["function","REXML::QuickPath","REXML/QuickPath.html#method-c-function","( elements, fname, rest )",""],["generate_event","REXML::Validation::State","REXML/Validation/State.html#method-i-generate_event","( event )",""],["get_attribute","REXML::Attributes","REXML/Attributes.html#method-i-get_attribute","( name )","
Returns the REXML::Attribute object for the given
name
:\n\nxml_string = <<-EOT\n <root xmlns:foo="http://foo" ...\n"],["get_attribute_ns","REXML::Attributes","REXML/Attributes.html#method-i-get_attribute_ns","(namespace, name)","Returns the REXML::Attribute object among the attributes that matches the given
namespace
andname
:\n\nxml_string ...\n\n"],["get_elements","REXML::Element","REXML/Element.html#method-i-get_elements","( xpath )","Returns an array of the elements that match the given
xpath
:\n\nxml_string = <<-EOT\n<root>\n <a level='1'> ...\n"],["get_first","REXML::XPathParser","REXML/XPathParser.html#method-i-get_first","(path, nodeset)",""],["get_namespace","REXML::Functions","REXML/Functions.html#method-c-get_namespace","( node_set = nil )","Helper method.\n"],["get_text","REXML::Element","REXML/Element.html#method-i-get_text","(path = nil)","
Returns the first text node child in a specified element, if it exists,
nil
otherwise.\nWith no argument, …\n"],["has_attributes?","REXML::Element","REXML/Element.html#method-i-has_attributes-3F","()","
Returns
true
if the element has attributes,false
otherwise:\n\nd = REXML::Document.new('<root><a attr="val"/><b/></root>') ...\n\n"],["has_elements?","REXML::Element","REXML/Element.html#method-i-has_elements-3F","()","Returns
true
if the element has one or more element children,false
otherwise:\n\nd = REXML::Document.new ...\n\n"],["has_name?","REXML::Light::Node","REXML/Light/Node.html#method-i-has_name-3F","( name, namespace = '' )",""],["has_name?","REXML::Namespace","REXML/Namespace.html#method-i-has_name-3F","( other, ns=nil )","Compares names optionally WITH namespaces\n"],["has_next?","REXML::Parsers::BaseParser","REXML/Parsers/BaseParser.html#method-i-has_next-3F","()","
Returns true if there are more events. Synonymous with !empty?\n"],["has_text?","REXML::Element","REXML/Element.html#method-i-has_text-3F","()","
Returns
true
if the element has one or more text noded,false
otherwise:\n\nd = REXML::Document.new '<a><b/>text<c/></a>' ...\n\n"],["hash","REXML::Attribute","REXML/Attribute.html#method-i-hash","()","Creates (and returns) a hash from both the name and value\n"],["id","REXML::Functions","REXML/Functions.html#method-c-id","( object )","
Since REXML is non-validating, this method is not implemented as it requires a DTD\n"],["ignore_whitespace_nodes","REXML::Element","REXML/Element.html#method-i-ignore_whitespace_nodes","()","
Returns
true
if whitespace nodes are ignored for the element.\nSee Element Context.\n"],["include?","REXML::AttlistDecl","REXML/AttlistDecl.html#method-i-include-3F","(key)","
Whether an attlist declaration includes the given attribute definition\n\n
if attlist_decl.include? "xmlns:foobar"\n"],["indent","REXML::Node","REXML/Node.html#method-i-indent","(to, ind)",""],["indent_text","REXML::Text","REXML/Text.html#method-i-indent_text","(string, level=1, style=\"\\t\", indentfirstline=true)",""],["index","REXML::Elements","REXML/Elements.html#method-i-index","(element)","Returns the 1-based index of the given
element
, if found; otherwise, returns -1:\n\nd = REXML::Document.new(xml_string) ...\n\n"],["index","REXML::Parent","REXML/Parent.html#method-i-index","( child )","Fetches the index of a given child @param child the child to get the index of @return the index of the …\n"],["index_in_parent","REXML::Node","REXML/Node.html#method-i-index_in_parent","()","
Returns the position that
self
holds in its parent’s array, indexed from 1.\n"],["inject","REXML::Elements","REXML/Elements.html#method-i-inject","( xpath=nil, initial=nil )","Calls the block with elements; returns the last block return value.\n
With no argument, iterates over the …\n"],["insert_after","REXML::Parent","REXML/Parent.html#method-i-insert_after","( child1, child2 )","
Inserts an child after another child @param child1 this is either an xpath or an Element. If an Element …\n"],["insert_before","REXML::Parent","REXML/Parent.html#method-i-insert_before","( child1, child2 )","
Inserts an child before another child @param child1 this is either an xpath or an Element. If an Element …\n"],["inspect","REXML::Attribute","REXML/Attribute.html#method-i-inspect","()",""],["inspect","REXML::Element","REXML/Element.html#method-i-inspect","()","
Returns a string representation of the element.\n
For an element with no attributes and no children, shows …\n"],["inspect","REXML::Instruction","REXML/Instruction.html#method-i-inspect","()",""],["inspect","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-inspect","()",""],["inspect","REXML::Text","REXML/Text.html#method-i-inspect","()",""],["inspect","REXML::Validation::Choice","REXML/Validation/Choice.html#method-i-inspect","()",""],["inspect","REXML::Validation::Event","REXML/Validation/Event.html#method-i-inspect","()",""],["inspect","REXML::Validation::Interleave","REXML/Validation/Interleave.html#method-i-inspect","()",""],["inspect","REXML::Validation::Ref","REXML/Validation/Ref.html#method-i-inspect","()",""],["inspect","REXML::Validation::State","REXML/Validation/State.html#method-i-inspect","()",""],["inspect","REXML::XMLDecl","REXML/XMLDecl.html#method-i-inspect","()",""],["instruction","REXML::StreamListener","REXML/StreamListener.html#method-i-instruction","(name, instruction)","
Called when an instruction is encountered. EG: <?xsl sheet=‘foo’?> @p name the instruction …\n"],["instruction?","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-instruction-3F","()","
Content: [ String text ]\n"],["instructions","REXML::Element","REXML/Element.html#method-i-instructions","()","
Returns a frozen array of the REXML::Instruction children of the element:\n\n
xml_string = <<-EOT\n <root> ...\n"],["lang","REXML::Functions","REXML/Functions.html#method-c-lang","( language )","UNTESTED\n"],["last","REXML::Functions","REXML/Functions.html#method-c-last","( )","
Returns the last node of the given list of nodes.\n"],["length","REXML::Attributes","REXML/Attributes.html#method-i-length","()","
Returns the count of attributes:\n\n
xml_string = <<-EOT\n <root xmlns:foo="http://foo" xmlns:bar="http://bar"> ...\n"],["length","REXML::Parent","REXML/Parent.html#method-i-length","()",""],["line","REXML::ParseException","REXML/ParseException.html#method-i-line","()",""],["listen","REXML::Parsers::SAX2Parser","REXML/Parsers/SAX2Parser.html#method-i-listen","( *args, &blok )","Listen arguments:\n
Symbol, Array, Block\n\n
Listen to Symbol events on Array elements\n\n"],["local_name","REXML::Functions","REXML/Functions.html#method-c-local_name","(node_set=nil)",""],["local_name","REXML::Light::Node","REXML/Light/Node.html#method-i-local_name","()",""],["local_name=","REXML::Light::Node","REXML/Light/Node.html#method-i-local_name-3D","( name_str )",""],["match","REXML::IOSource","REXML/IOSource.html#method-i-match","( pattern, cons=false )",""],["match","REXML::QuickPath","REXML/QuickPath.html#method-c-match","(element, path, namespaces=EMPTY_HASH)",""],["match","REXML::Source","REXML/Source.html#method-i-match","(pattern, cons=false)",""],["match","REXML::XPath","REXML/XPath.html#method-c-match","(element, path=nil, namespaces=nil, variables={}, options={})","Returns an array of nodes matching a given XPath.\n"],["match","REXML::XPathParser","REXML/XPathParser.html#method-i-match","(path_stack, nodeset)",""],["matches?","REXML::Entity","REXML/Entity.html#method-c-matches-3F","(string)","
Evaluates whether the given string matches an entity definition, returning true if so, and false otherwise. …\n"],["matches?","REXML::Validation::Choice","REXML/Validation/Choice.html#method-i-matches-3F","( event )",""],["matches?","REXML::Validation::Event","REXML/Validation/Event.html#method-i-matches-3F","( event )",""],["matches?","REXML::Validation::Interleave","REXML/Validation/Interleave.html#method-i-matches-3F","( event )",""],["matches?","REXML::Validation::OneOrMore","REXML/Validation/OneOrMore.html#method-i-matches-3F","( event )",""],["matches?","REXML::Validation::Optional","REXML/Validation/Optional.html#method-i-matches-3F","(event)",""],["matches?","REXML::Validation::Sequence","REXML/Validation/Sequence.html#method-i-matches-3F","(event)",""],["method_missing","REXML::QuickPath","REXML/QuickPath.html#method-c-method_missing","( id, *args )",""],["name","REXML::Document","REXML/Document.html#method-i-name","()",""],["name","REXML::Functions","REXML/Functions.html#method-c-name","( node_set=nil )",""],["name","REXML::Light::Node","REXML/Light/Node.html#method-i-name","()",""],["name","REXML::NotationDecl","REXML/NotationDecl.html#method-i-name","()","
This method retrieves the name of the notation.\n
Method contributed by Henrik Martensson\n"],["name","REXML::QuickPath","REXML/QuickPath.html#method-c-name","()",""],["name=","REXML::Light::Node","REXML/Light/Node.html#method-i-name-3D","( name_str, ns=nil )",""],["name=","REXML::Namespace","REXML/Namespace.html#method-i-name-3D","( name )","
Sets the name and the expanded name\n"],["namespace","REXML::Attribute","REXML/Attribute.html#method-i-namespace","(arg=nil)","
Returns the namespace URL, if defined, or nil otherwise\n\n
e = Element.new("el")\ne.add_namespace("ns", "http://url") ...\n\n"],["namespace","REXML::Element","REXML/Element.html#method-i-namespace","(prefix=nil)","Returns the string namespace URI for the element, possibly deriving from one of its ancestors.\n\n
xml_string ...\n\n"],["namespace","REXML::Light::Node","REXML/Light/Node.html#method-i-namespace","( prefix=prefix() )",""],["namespace=","REXML::Light::Node","REXML/Light/Node.html#method-i-namespace-3D","( namespace )",""],["namespace_context","REXML::Functions","REXML/Functions.html#method-c-namespace_context","()",""],["namespace_context=","REXML::Functions","REXML/Functions.html#method-c-namespace_context-3D","(x)",""],["namespace_uri","REXML::Functions","REXML/Functions.html#method-c-namespace_uri","( node_set=nil )",""],["namespaces","REXML::Attributes","REXML/Attributes.html#method-i-namespaces","()","Returns a hash of name/value pairs for the namespaces:\n\n
xml_string = '<a xmlns="foo" xmlns:x="bar" xmlns:y="twee" ...\n"],["namespaces","REXML::Element","REXML/Element.html#method-i-namespaces","()","Returns a hash of all defined namespaces in the element and its ancestors:\n\n
xml_string = <<-EOT\n <root> ...\n"],["namespaces=","REXML::Parsers::XPathParser","REXML/Parsers/XPathParser.html#method-i-namespaces-3D","( namespaces )",""],["namespaces=","REXML::XPathParser","REXML/XPathParser.html#method-i-namespaces-3D","( namespaces={} )",""],["new","REXML::AttlistDecl","REXML/AttlistDecl.html#method-c-new","(source)","Create an AttlistDecl, pulling the information from a Source. Notice that this isn’t very convenient; …\n"],["new","REXML::Attribute","REXML/Attribute.html#method-c-new","( first, second=nil, parent=nil )","
Constructor. FIXME: The parser doesn’t catch illegal characters in attributes\n
first — Either: an Attribute …\n"],["new","REXML::Attributes","REXML/Attributes.html#method-c-new","(element)","
Creates and returns a new REXML::Attributes object. The element given by argument
element
is stored, …\n"],["new","REXML::CData","REXML/CData.html#method-c-new","( first, whitespace=true, parent=nil )","\nConstructor. CData is data between <![CDATA[ ... ]]>\nExamples\n\n
CData.new( source )\nCData.new( "Here is ...\n"],["new","REXML::Child","REXML/Child.html#method-c-new","( parent = nil )","Constructor. Any inheritors of this class should call super to make sure this method is called.\n
parent … — "],["new","REXML::Comment","REXML/Comment.html#method-c-new","( first, second = nil )","
Constructor. The first argument can be one of three types: @param first If String, the contents of this …\n"],["new","REXML::DTD::ElementDecl","REXML/DTD/ElementDecl.html#method-c-new","(match)","
s*(((([“‘]).*?5)|*)*?)(/)?>/um, true)\n"],["new","REXML::DTD::EntityDecl","REXML/DTD/EntityDecl.html#method-c-new","(src)","
<!ENTITY name SYSTEM “…”> <!ENTITY name “…”>\n"],["new","REXML::DTD::NotationDecl","REXML/DTD/NotationDecl.html#method-c-new","(src)",""],["new","REXML::Declaration","REXML/Declaration.html#method-c-new","(src)",""],["new","REXML::DocType","REXML/DocType.html#method-c-new","( first, parent=nil )","
Constructor\n\n
dt = DocType.new( 'foo', '-//I/Hate/External/IDs' )\n# <!DOCTYPE foo '-//I/Hate/External/IDs'> ...\n\n"],["new","REXML::Document","REXML/Document.html#method-c-new","( source = nil, context = {} )","Returns a new REXML::Document object.\n
When no arguments are given, returns an empty document:\n\n
d = REXML::Document.new ...\n\n"],["new","REXML::Element","REXML/Element.html#method-c-new","( arg = UNDEFINED, parent=nil, context=nil )","Returns a new REXML::Element object.\n
When no arguments are given, returns an element with name
'UNDEFINED'
…\n"],["new","REXML::ElementDecl","REXML/ElementDecl.html#method-c-new","( src )",""],["new","REXML::Elements","REXML/Elements.html#method-c-new","(parent)","Returns a new Elements object with the given
parent
. Does not assignparent.elements = self
:\n\nd = REXML::Document.new(xml_string) ...\n\n"],["new","REXML::Entity","REXML/Entity.html#method-c-new","(stream, value=nil, parent=nil, reference=false)","Create a new entity. Simple entities can be constructed by passing a name, value to the constructor; …\n"],["new","REXML::ExternalEntity","REXML/ExternalEntity.html#method-c-new","( src )",""],["new","REXML::Formatters::Default","REXML/Formatters/Default.html#method-c-new","( ie_hack=false )","
Prints out the XML document with no formatting – except if ie_hack is set.\n
ie_hack — If set to true, then …\n\n"],["new","REXML::Formatters::Pretty","REXML/Formatters/Pretty.html#method-c-new","( indentation=2, ie_hack=false )","
Create a new pretty printer.\n
output — An object implementing ‘<<(String)’, to which the output …\n"],["new","REXML::Formatters::Transitive","REXML/Formatters/Transitive.html#method-c-new","( indentation=2, ie_hack=false )",""],["new","REXML::IOSource","REXML/IOSource.html#method-c-new","(arg, block_size=500, encoding=nil)","
block_size has been deprecated\n"],["new","REXML::Instruction","REXML/Instruction.html#method-c-new","(target, content=nil)","
Constructs a new Instruction @param target can be one of a number of things. If String, then the target …\n"],["new","REXML::Light::Node","REXML/Light/Node.html#method-c-new","(node=nil)","
Create a new element.\n"],["new","REXML::NotationDecl","REXML/NotationDecl.html#method-c-new","(name, middle, pub, sys)",""],["new","REXML::Output","REXML/Output.html#method-c-new","(real_IO, encd=\"iso-8859-1\")",""],["new","REXML::Parent","REXML/Parent.html#method-c-new","(parent=nil)","
Constructor @param parent if supplied, will be set as the parent of this object\n"],["new","REXML::ParseException","REXML/ParseException.html#method-c-new","( message, source=nil, parser=nil, exception=nil )",""],["new","REXML::Parsers::BaseParser","REXML/Parsers/BaseParser.html#method-c-new","( source )",""],["new","REXML::Parsers::LightParser","REXML/Parsers/LightParser.html#method-c-new","(stream)",""],["new","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-c-new","(arg)","
The type of this event. Will be one of :tag_start, :tag_end, :text, :processing_instruction, :comment, …\n"],["new","REXML::Parsers::PullParser","REXML/Parsers/PullParser.html#method-c-new","(stream)",""],["new","REXML::Parsers::SAX2Parser","REXML/Parsers/SAX2Parser.html#method-c-new","(source)",""],["new","REXML::Parsers::StreamParser","REXML/Parsers/StreamParser.html#method-c-new","(source, listener)",""],["new","REXML::Parsers::TreeParser","REXML/Parsers/TreeParser.html#method-c-new","( source, build_context = Document.new )",""],["new","REXML::Parsers::UltraLightParser","REXML/Parsers/UltraLightParser.html#method-c-new","(stream)",""],["new","REXML::ReferenceWriter","REXML/ReferenceWriter.html#method-c-new","(id_type, public_id_literal, system_literal, context=nil)",""],["new","REXML::Source","REXML/Source.html#method-c-new","(arg, encoding=nil)","
Constructor @param arg must be a String, and should be a valid XML document @param encoding if non-null, …\n"],["new","REXML::Text","REXML/Text.html#method-c-new","(arg, respect_whitespace=false, parent=nil, raw=nil, entity_filter=nil, illegal=NEEDS_A_SECOND_CHECK )","
Constructor
arg
if a String, the content is set to the String. If a Text, the object is shallowly cloned. …\n"],["new","REXML::UndefinedNamespaceException","REXML/UndefinedNamespaceException.html#method-c-new","( prefix, source, parser )",""],["new","REXML::Validation::Choice","REXML/Validation/Choice.html#method-c-new","(context)",""],["new","REXML::Validation::Event","REXML/Validation/Event.html#method-c-new","(event_type, event_arg=nil )",""],["new","REXML::Validation::Interleave","REXML/Validation/Interleave.html#method-c-new","(context)",""],["new","REXML::Validation::OneOrMore","REXML/Validation/OneOrMore.html#method-c-new","(context)",""],["new","REXML::Validation::Ref","REXML/Validation/Ref.html#method-c-new","(value)",""],["new","REXML::Validation::RelaxNG","REXML/Validation/RelaxNG.html#method-c-new","(source)","FIXME: Namespaces\n"],["new","REXML::Validation::State","REXML/Validation/State.html#method-c-new","( context )",""],["new","REXML::Validation::ValidationException","REXML/Validation/ValidationException.html#method-c-new","(msg)",""],["new","REXML::XMLDecl","REXML/XMLDecl.html#method-c-new","(version=DEFAULT_VERSION, encoding=nil, standalone=nil)",""],["new","REXML::XPathNode","REXML/XPathNode.html#method-c-new","(node, context=nil)",""],["new","REXML::XPathParser","REXML/XPathParser.html#method-c-new","(strict: false)",""],["next","REXML::Validation::Choice","REXML/Validation/Choice.html#method-i-next","( event )",""],["next","REXML::Validation::Interleave","REXML/Validation/Interleave.html#method-i-next","( event )",""],["next","REXML::Validation::OneOrMore","REXML/Validation/OneOrMore.html#method-i-next","( event )",""],["next","REXML::Validation::Optional","REXML/Validation/Optional.html#method-i-next","( event )",""],["next","REXML::Validation::State","REXML/Validation/State.html#method-i-next","( event )",""],["next","REXML::Validation::ZeroOrMore","REXML/Validation/ZeroOrMore.html#method-i-next","( event )",""],["next_current","REXML::Validation::Interleave","REXML/Validation/Interleave.html#method-i-next_current","( event )",""],["next_element","REXML::Element","REXML/Element.html#method-i-next_element","()","
Returns the next sibling that is an element if it exists,
niL
otherwise:\n\nd = REXML::Document.new '<a><b/>text<c/></a>' ...\n\n"],["next_sibling=","REXML::Child","REXML/Child.html#method-i-next_sibling-3D","( other )","Sets the next sibling of this child. This can be used to insert a child after some other child.\n\n
a = Element.new("a") ...\n\n"],["next_sibling_node","REXML::Node","REXML/Node.html#method-i-next_sibling_node","()","@return the next sibling (nil if unset)\n"],["node_type","REXML::AttlistDecl","REXML/AttlistDecl.html#method-i-node_type","()",""],["node_type","REXML::Attribute","REXML/Attribute.html#method-i-node_type","()",""],["node_type","REXML::Comment","REXML/Comment.html#method-i-node_type","()",""],["node_type","REXML::DocType","REXML/DocType.html#method-i-node_type","()",""],["node_type","REXML::Document","REXML/Document.html#method-i-node_type","()","
Returns the symbol
:document
.\n"],["node_type","REXML::Element","REXML/Element.html#method-i-node_type","()","Returns symbol
:element
:\n\nd = REXML::Document.new('<a/>')\na = d.root # => <a/>\na.node_type # => :element\n\n"],["node_type","REXML::Instruction","REXML/Instruction.html#method-i-node_type","()",""],["node_type","REXML::Light::Node","REXML/Light/Node.html#method-i-node_type","()",""],["node_type","REXML::Text","REXML/Text.html#method-i-node_type","()",""],["node_type","REXML::XMLDecl","REXML/XMLDecl.html#method-i-node_type","()",""],["normalize","REXML::Parsers::BaseParser","REXML/Parsers/BaseParser.html#method-i-normalize","( input, entities=nil, entity_filter=nil )","Escapes all possible entities\n"],["normalize_space","REXML::Functions","REXML/Functions.html#method-c-normalize_space","( string=nil )",""],["normalized","REXML::Entity","REXML/Entity.html#method-i-normalized","()","
Returns the value of this entity unprocessed – raw. This is the normalized value; that is, with all …\n"],["normalized=","REXML::Attribute","REXML/Attribute.html#method-i-normalized-3D","(new_normalized)","
The normalized value of this attribute. That is, the attribute with entities intact.\n"],["not","REXML::Functions","REXML/Functions.html#method-c-not","( object )","
UNTESTED\n"],["notation","REXML::DocType","REXML/DocType.html#method-i-notation","(name)","
Retrieves a named notation. Only notations declared in the internal DTD subset can be retrieved.\n
Method …\n"],["notationdecl","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-notationdecl","(name, public_or_system, public_id, system_id)","
<!NOTATION …>\n"],["notationdecl","REXML::StreamListener","REXML/StreamListener.html#method-i-notationdecl","(content)","
<!NOTATION …>\n"],["notationdecl?","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-notationdecl-3F","()","
Content: [ String text ]\n"],["notations","REXML::DocType","REXML/DocType.html#method-i-notations","()","
This method returns a list of notations that have been declared in the internal DTD subset. Notations …\n"],["nowrite","REXML::XMLDecl","REXML/XMLDecl.html#method-i-nowrite","()",""],["number","REXML::Functions","REXML/Functions.html#method-c-number","(object=@@context[:node])","
a string that consists of optional whitespace followed by an optional minus sign followed by a Number …\n"],["old_enc=","REXML::XMLDecl","REXML/XMLDecl.html#method-i-old_enc-3D","( enc )",""],["parent","REXML::Elements","REXML/Elements.html#method-i-parent","()","
Returns the parent element cited in creating the Elements object. This element is also the default starting …\n"],["parent","REXML::Light::Node","REXML/Light/Node.html#method-i-parent","()",""],["parent=","REXML::Child","REXML/Child.html#method-i-parent-3D","( other )","
Sets the parent of this child to the supplied argument.\n
other — Must be a Parent object. If this object …\n"],["parent=","REXML::Light::Node","REXML/Light/Node.html#method-i-parent-3D","( node )",""],["parent=","REXML::Text","REXML/Text.html#method-i-parent-3D","(parent)",""],["parent?","REXML::Node","REXML/Node.html#method-i-parent-3F","()",""],["parent?","REXML::Parent","REXML/Parent.html#method-i-parent-3F","()",""],["parse","REXML::DTD::Parser","REXML/DTD/Parser.html#method-c-parse","( input )",""],["parse","REXML::Parsers::LightParser","REXML/Parsers/LightParser.html#method-i-parse","()",""],["parse","REXML::Parsers::SAX2Parser","REXML/Parsers/SAX2Parser.html#method-i-parse","()",""],["parse","REXML::Parsers::StreamParser","REXML/Parsers/StreamParser.html#method-i-parse","()",""],["parse","REXML::Parsers::TreeParser","REXML/Parsers/TreeParser.html#method-i-parse","()",""],["parse","REXML::Parsers::UltraLightParser","REXML/Parsers/UltraLightParser.html#method-i-parse","()",""],["parse","REXML::Parsers::XPathParser","REXML/Parsers/XPathParser.html#method-i-parse","(path)",""],["parse","REXML::XPathParser","REXML/XPathParser.html#method-i-parse","(path, nodeset)",""],["parse_args","REXML::QuickPath","REXML/QuickPath.html#method-c-parse_args","( element, string )",""],["parse_helper","REXML::DTD::Parser","REXML/DTD/Parser.html#method-c-parse_helper","( input )","
Takes a String and parses it out\n"],["parse_source","REXML::DTD::EntityDecl","REXML/DTD/EntityDecl.html#method-c-parse_source","(source, listener)",""],["parse_source","REXML::DTD::NotationDecl","REXML/DTD/NotationDecl.html#method-c-parse_source","(source, listener)",""],["parse_stream","REXML::Document","REXML/Document.html#method-c-parse_stream","( source, listener )",""],["peek","REXML::Parsers::BaseParser","REXML/Parsers/BaseParser.html#method-i-peek","(depth=0)","
Peek at the
depth
event in the stack. The first element on the stack is at depth 0. Ifdepth
is -1, …\n"],["peek","REXML::Parsers::PullParser","REXML/Parsers/PullParser.html#method-i-peek","(depth=0)",""],["position","REXML::Functions","REXML/Functions.html#method-c-position","( )",""],["position","REXML::ParseException","REXML/ParseException.html#method-i-position","()",""],["position","REXML::Parsers::BaseParser","REXML/Parsers/BaseParser.html#method-i-position","()",""],["position","REXML::Source","REXML/Source.html#method-i-position","()",""],["position","REXML::XPathNode","REXML/XPathNode.html#method-i-position","()",""],["position=","REXML::Source","REXML/Source.html#method-i-position-3D","(pos)",""],["preciate_to_string","REXML::Parsers::XPathParser","REXML/Parsers/XPathParser.html#method-i-preciate_to_string","(parsed, &block)","For backward compatibility\n"],["predicate","REXML::Parsers::XPathParser","REXML/Parsers/XPathParser.html#method-i-predicate","(path)",""],["predicate","REXML::QuickPath","REXML/QuickPath.html#method-c-predicate","( elements, path )","
A predicate filters a node-set with respect to an axis to produce a new node-set. For each node in the …\n"],["predicate","REXML::XPathParser","REXML/XPathParser.html#method-i-predicate","(path, nodeset)",""],["predicate_to_path","REXML::Parsers::XPathParser","REXML/Parsers/XPathParser.html#method-i-predicate_to_path","(parsed, &block)",""],["prefix","REXML::Attribute","REXML/Attribute.html#method-i-prefix","()","
Returns the namespace of the attribute.\n\n
e = Element.new( "elns:myelement" )\ne.add_attribute( "nsa:a", ...\n"],["prefix","REXML::Light::Node","REXML/Light/Node.html#method-i-prefix","( namespace=nil )",""],["prefixes","REXML::Attributes","REXML/Attributes.html#method-i-prefixes","()","Returns an array of prefix strings in the attributes. The array does not include the default namespace …\n"],["prefixes","REXML::Element","REXML/Element.html#method-i-prefixes","()","
Returns an array of the string prefixes (names) of all defined namespaces in the element and its ancestors: …\n"],["previous=","REXML::Validation::State","REXML/Validation/State.html#method-i-previous-3D","( previous )",""],["previous_element","REXML::Element","REXML/Element.html#method-i-previous_element","()","
Returns the previous sibling that is an element if it exists,
niL
otherwise:\n\nd = REXML::Document.new '<a><b/>text<c/></a>' ...\n\n"],["previous_sibling=","REXML::Child","REXML/Child.html#method-i-previous_sibling-3D","(other)","Sets the previous sibling of this child. This can be used to insert a child before some other child. …\n"],["previous_sibling_node","REXML::Node","REXML/Node.html#method-i-previous_sibling_node","()","
@return the previous sibling (nil if unset)\n"],["processing_instruction","REXML::Functions","REXML/Functions.html#method-c-processing_instruction","( node )",""],["processing_instruction","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-processing_instruction","(target, data)",""],["progress","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-progress","(position)",""],["public","REXML::DocType","REXML/DocType.html#method-i-public","()","
This method retrieves the public identifier identifying the document’s DTD.\n
Method contributed by …\n"],["pull","REXML::Parsers::BaseParser","REXML/Parsers/BaseParser.html#method-i-pull","()","
Returns the next event. This is a
PullEvent
object.\n"],["pull","REXML::Parsers::PullParser","REXML/Parsers/PullParser.html#method-i-pull","()",""],["push","REXML::Parent","REXML/Parent.html#method-i-push","( object )",""],["raw","REXML::Element","REXML/Element.html#method-i-raw","()","Returns
true
if raw mode is set for the element.\nSee Element Context.\n
The evaluation is tested against …\n"],["read","REXML::IOSource","REXML/IOSource.html#method-i-read","(term = nil, min_bytes = 1)",""],["read","REXML::Source","REXML/Source.html#method-i-read","(term = nil)",""],["read_until","REXML::IOSource","REXML/IOSource.html#method-i-read_until","(term)",""],["read_until","REXML::Source","REXML/Source.html#method-i-read_until","(term)",""],["receive","REXML::Validation::RelaxNG","REXML/Validation/RelaxNG.html#method-i-receive","(event)",""],["record_entity_expansion","REXML::Document","REXML/Document.html#method-i-record_entity_expansion","()",""],["remove","REXML::Attribute","REXML/Attribute.html#method-i-remove","()","
Removes this Attribute from the tree, and returns true if successful\n
This method is usually not called …\n"],["remove","REXML::Child","REXML/Child.html#method-i-remove","()","
Removes this child from the parent.\n
Returns — self\n\n"],["replace_child","REXML::Parent","REXML/Parent.html#method-i-replace_child","( to_replace, replacement )","
Replaces one child with another, making sure the nodelist is correct @param to_replace the child to replace …\n"],["replace_with","REXML::Child","REXML/Child.html#method-i-replace_with","( child )","
Replaces this object with another object. Basically, calls Parent.replace_child\n
Returns — self\n\n"],["reset","REXML::Validation::Choice","REXML/Validation/Choice.html#method-i-reset","()",""],["reset","REXML::Validation::Interleave","REXML/Validation/Interleave.html#method-i-reset","()",""],["reset","REXML::Validation::OneOrMore","REXML/Validation/OneOrMore.html#method-i-reset","()",""],["reset","REXML::Validation::State","REXML/Validation/State.html#method-i-reset","()",""],["reset","REXML::Validation::Validator","REXML/Validation/Validator.html#method-i-reset","()",""],["rewind","REXML::Parsers::LightParser","REXML/Parsers/LightParser.html#method-i-rewind","()",""],["rewind","REXML::Parsers::UltraLightParser","REXML/Parsers/UltraLightParser.html#method-i-rewind","()",""],["root","REXML::Document","REXML/Document.html#method-i-root","()","
Returns the root element of the document, if it exists, otherwise
nil
:\n\nd = REXML::Document.new('<root></root>') ...\n\n"],["root","REXML::Element","REXML/Element.html#method-i-root","()","Returns the most distant element (not document) ancestor of the element:\n\n
d = REXML::Document.new('<a><b><c/></b></a>') ...\n\n"],["root","REXML::Light::Node","REXML/Light/Node.html#method-i-root","()",""],["root_node","REXML::Element","REXML/Element.html#method-i-root_node","()","Returns the most distant ancestor of
self
.\nWhen the element is part of a document, returns the root node …\n"],["round","REXML::Functions","REXML/Functions.html#method-c-round","( number )",""],["scan","REXML::StringScannerCheckScanString","REXML/StringScannerCheckScanString.html#method-i-scan","(pattern)",""],["send","REXML::Functions","REXML/Functions.html#method-c-send","(name, *args)",""],["single?","REXML::Validation::Event","REXML/Validation/Event.html#method-i-single-3F","()",""],["singleton_method_added","REXML::Functions","REXML/Functions.html#method-c-singleton_method_added","(name)",""],["size","REXML::Attributes","REXML/Attributes.html#method-i-size","()",""],["size","REXML::Elements","REXML/Elements.html#method-i-size","()","
Returns the count of Element children:\n\n
d = REXML::Document.new '<a>sean<b/>elliott<b/>russell<b/></a>' ...\n\n"],["size","REXML::Light::Node","REXML/Light/Node.html#method-i-size","()",""],["size","REXML::Parent","REXML/Parent.html#method-i-size","()","@return the number of children of this parent\n"],["source","REXML::Parsers::SAX2Parser","REXML/Parsers/SAX2Parser.html#method-i-source","()",""],["stand_alone?","REXML::Document","REXML/Document.html#method-i-stand_alone-3F","()","
Returns the XMLDecl standalone value of the document as a string, if it has been set, otherwise the default …\n"],["start_document","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-start_document","()",""],["start_element","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-start_element","(uri, localname, qname, attributes)",""],["start_element?","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-start_element-3F","()","
Content: [ String tag_name, Hash attributes ]\n"],["start_prefix_mapping","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-start_prefix_mapping","(prefix, uri)",""],["starts_with","REXML::Functions","REXML/Functions.html#method-c-starts_with","( string, test )","
Fixed by Mike Stok\n"],["stream=","REXML::Parsers::BaseParser","REXML/Parsers/BaseParser.html#method-i-stream-3D","( source )",""],["string","REXML::Functions","REXML/Functions.html#method-c-string","( object=@@context[:node] )","
A node-set is converted to a string by returning the string-value of the node in the node-set that is …\n"],["string_length","REXML::Functions","REXML/Functions.html#method-c-string_length","( string )","
UNTESTED\n"],["string_value","REXML::Functions","REXML/Functions.html#method-c-string_value","( o )","
A node-set is converted to a string by returning the concatenation of the string-value of each of the …\n"],["substring","REXML::Functions","REXML/Functions.html#method-c-substring","( string, start, length=nil )","
Take equal portions of Mike Stok and Sean Russell; mix vigorously, and pour into a tall, chilled glass. …\n"],["substring_after","REXML::Functions","REXML/Functions.html#method-c-substring_after","( string, test )","
Kouhei fixed this too\n"],["substring_before","REXML::Functions","REXML/Functions.html#method-c-substring_before","( string, test )","
Kouhei fixed this\n"],["sum","REXML::Functions","REXML/Functions.html#method-c-sum","( nodes )",""],["system","REXML::DocType","REXML/DocType.html#method-i-system","()","
This method retrieves the system identifier identifying the document’s DTD\n
Method contributed by …\n"],["tag_end","REXML::StreamListener","REXML/StreamListener.html#method-i-tag_end","(name)","
Called when the end tag is reached. In the case of <tag/>, tag_end will be called immediately …\n"],["tag_start","REXML::StreamListener","REXML/StreamListener.html#method-i-tag_start","(name, attrs)","
Called when a tag is encountered. @p name the tag name @p attrs an array of arrays of attribute/value …\n"],["tally","REXML::Parsers::EnumerableTally","REXML/Parsers/EnumerableTally.html#method-i-tally","()",""],["text","REXML::Element","REXML/Element.html#method-i-text","( path = nil )","
Returns the text string from the first text node child in a specified element, if it exists,
nil
otherwise. …\n"],["text","REXML::Functions","REXML/Functions.html#method-c-text","( )",""],["text","REXML::StreamListener","REXML/StreamListener.html#method-i-text","(text)","Called when text is encountered in the document @p text the text content.\n"],["text=","REXML::Element","REXML/Element.html#method-i-text-3D","( text )","
Adds, replaces, or removes the first text node child in the element.\n
With string argument
string
, creates …\n"],["text=","REXML::Light::Node","REXML/Light/Node.html#method-i-text-3D","( foo )",""],["text?","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-text-3F","()","Content: [ String raw_text, String unnormalized_text ]\n"],["texts","REXML::Element","REXML/Element.html#method-i-texts","()","
Returns a frozen array of the REXML::Text children of the element:\n\n
xml_string = '<root><a/>text<b/>more<c/></root>' ...\n\n"],["to_a","REXML::Attributes","REXML/Attributes.html#method-i-to_a","()","Returns an array of REXML::Attribute objects representing the attributes:\n\n
xml_string = <<-EOT\n <root ...\n"],["to_a","REXML::Elements","REXML/Elements.html#method-i-to_a","( xpath=nil )","Returns an array of element children (not including non-element children).\n
With no argument, returns an …\n"],["to_a","REXML::Parent","REXML/Parent.html#method-i-to_a","()",""],["to_s","REXML::Attribute","REXML/Attribute.html#method-i-to_s","()","
Returns the attribute value, with entities replaced\n"],["to_s","REXML::CData","REXML/CData.html#method-i-to_s","()","
Returns the content of this CData object\n
Examples\n\n
c = CData.new( "Some text" )\nc.to_s # -> "Some ...\n\n"],["to_s","REXML::DTD::EntityDecl","REXML/DTD/EntityDecl.html#method-i-to_s","()",""],["to_s","REXML::DTD::NotationDecl","REXML/DTD/NotationDecl.html#method-i-to_s","()",""],["to_s","REXML::Declaration","REXML/Declaration.html#method-i-to_s","()",""],["to_s","REXML::Entity","REXML/Entity.html#method-i-to_s","()","Returns this entity as a string. See write().\n"],["to_s","REXML::ExternalEntity","REXML/ExternalEntity.html#method-i-to_s","()",""],["to_s","REXML::Light::Node","REXML/Light/Node.html#method-i-to_s","()",""],["to_s","REXML::Node","REXML/Node.html#method-i-to_s","(indent=nil)","
indent — DEPRECATED This parameter is now ignored. See the formatters in the REXML::Formatters package …\n\n"],["to_s","REXML::NotationDecl","REXML/NotationDecl.html#method-i-to_s","()",""],["to_s","REXML::Output","REXML/Output.html#method-i-to_s","()",""],["to_s","REXML::ParseException","REXML/ParseException.html#method-i-to_s","()",""],["to_s","REXML::Text","REXML/Text.html#method-i-to_s","()","
Returns the string value of this text node. This string is always escaped, meaning that it is a valid …\n"],["to_s","REXML::Validation::Event","REXML/Validation/Event.html#method-i-to_s","()",""],["to_s","REXML::Validation::Ref","REXML/Validation/Ref.html#method-i-to_s","()",""],["to_s","REXML::Validation::State","REXML/Validation/State.html#method-i-to_s","()",""],["to_string","REXML::Attribute","REXML/Attribute.html#method-i-to_string","()","
Returns this attribute out as XML source, expanding the name\n\n
a = Attribute.new( "x", "y" )\na.to_string ...\n\n"],["translate","REXML::Functions","REXML/Functions.html#method-c-translate","( string, tr1, tr2 )","This is entirely Mike Stok’s beast\n"],["true","REXML::Functions","REXML/Functions.html#method-c-true","( )","
UNTESTED\n"],["unnormalize","REXML::Parsers::BaseParser","REXML/Parsers/BaseParser.html#method-i-unnormalize","( string, entities=nil, filter=nil )","
Unescapes all possible entities\n"],["unnormalized","REXML::Entity","REXML/Entity.html#method-i-unnormalized","()","
Evaluates to the unnormalized value of this entity; that is, replacing &ent; entities.\n"],["unshift","REXML::Parent","REXML/Parent.html#method-i-unshift","( object )",""],["unshift","REXML::Parsers::BaseParser","REXML/Parsers/BaseParser.html#method-i-unshift","(token)","
Push an event back on the head of the stream. This method has (theoretically) infinite depth.\n"],["unshift","REXML::Parsers::PullParser","REXML/Parsers/PullParser.html#method-i-unshift","(token)",""],["validate","REXML::Validation::Validator","REXML/Validation/Validator.html#method-i-validate","( event )",""],["value","REXML::Attribute","REXML/Attribute.html#method-i-value","()","
Returns the UNNORMALIZED value of this attribute. That is, entities have been expanded to their values …\n"],["value","REXML::CData","REXML/CData.html#method-i-value","()",""],["value","REXML::Text","REXML/Text.html#method-i-value","()","
Returns the string value of this text. This is the text without entities, as it might be used programmatically, …\n"],["value=","REXML::Text","REXML/Text.html#method-i-value-3D","( val )","
Sets the contents of this text node. This expects the text to be unnormalized. It returns self.\n\n
e = ...\n"],["variables","REXML::Functions","REXML/Functions.html#method-c-variables","()",""],["variables=","REXML::Functions","REXML/Functions.html#method-c-variables-3D","(x)",""],["variables=","REXML::XPathParser","REXML/XPathParser.html#method-i-variables-3D","( vars={} )",""],["version","REXML::Document","REXML/Document.html#method-i-version","()","Returns the XMLDecl version of this document as a string, if it has been set, otherwise the default version: …\n"],["whitespace","REXML::Element","REXML/Element.html#method-i-whitespace","()","
Returns
true
if whitespace is respected for this element,false
otherwise.\nSee Element Context.\n
The evaluation …\n"],["wrap","REXML::Text","REXML/Text.html#method-i-wrap","(string, width, addnewline=false)",""],["write","REXML::AttlistDecl","REXML/AttlistDecl.html#method-i-write","(out, indent=-1)","
Write out exactly what we got in.\n"],["write","REXML::Attribute","REXML/Attribute.html#method-i-write","( output, indent=-1 )","
Writes this attribute (EG, puts ‘key=“value”’ to the output)\n"],["write","REXML::CData","REXML/CData.html#method-i-write","( output=$stdout, indent=-1, transitive=false, ie_hack=false )","
DEPRECATED\n
See the rexml/formatters package\n
Generates XML output of this object\n"],["write","REXML::Comment","REXML/Comment.html#method-i-write","( output, indent=-1, transitive=false, ie_hack=false )","
DEPRECATED\n
See REXML::Formatters\n
output — Where to write the string\n"],["write","REXML::DTD::EntityDecl","REXML/DTD/EntityDecl.html#method-i-write","( output, indent )",""],["write","REXML::DTD::NotationDecl","REXML/DTD/NotationDecl.html#method-i-write","( output, indent )",""],["write","REXML::Declaration","REXML/Declaration.html#method-i-write","( output, indent )","
DEPRECATED\n
See REXML::Formatters\n"],["write","REXML::DocType","REXML/DocType.html#method-i-write","( output, indent=0, transitive=false, ie_hack=false )","
output — Where to write the string\n
indent — An integer. If -1, no indentation will be used; otherwise, the …\n"],["write","REXML::Document","REXML/Document.html#method-i-write","(*arguments)","
Write the XML tree out, optionally with indent. This writes out the entire XML document, including …\n"],["write","REXML::Element","REXML/Element.html#method-i-write","(output=$stdout, indent=-1, transitive=false, ie_hack=false)","
DEPRECATED\n
See REXML::Formatters\n
Writes out this element, and recursively, all children.\n"],["write","REXML::Entity","REXML/Entity.html#method-i-write","(out, indent=-1)","
Write out a fully formed, correct entity definition (assuming the Entity object itself is valid.)\n
out … — "],["write","REXML::ExternalEntity","REXML/ExternalEntity.html#method-i-write","( output, indent )",""],["write","REXML::Formatters::Default","REXML/Formatters/Default.html#method-i-write","( node, output )","
Writes the node to some output.\n
node — The node to write\n
output — A class implementing
<<
. …\n"],["write","REXML::Instruction","REXML/Instruction.html#method-i-write","(writer, indent=-1, transitive=false, ie_hack=false)","DEPRECATED\n
See the rexml/formatters package\n"],["write","REXML::NotationDecl","REXML/NotationDecl.html#method-i-write","( output, indent=-1 )",""],["write","REXML::ReferenceWriter","REXML/ReferenceWriter.html#method-i-write","(output)",""],["write","REXML::Text","REXML/Text.html#method-i-write","( writer, indent=-1, transitive=false, ie_hack=false )","
DEPRECATED\n
See REXML::Formatters\n"],["write","REXML::XMLDecl","REXML/XMLDecl.html#method-i-write","(writer, indent=-1, transitive=false, ie_hack=false)","
indent — Ignored. There must be no whitespace before an XML declaration\n
transitive — Ignored\n
ie_hack — Ignored …\n"],["write_cdata","REXML::Formatters::Default","REXML/Formatters/Default.html#method-i-write_cdata","( node, output )",""],["write_cdata","REXML::Formatters::Pretty","REXML/Formatters/Pretty.html#method-i-write_cdata","( node, output)",""],["write_comment","REXML::Formatters::Default","REXML/Formatters/Default.html#method-i-write_comment","( node, output )",""],["write_comment","REXML::Formatters::Pretty","REXML/Formatters/Pretty.html#method-i-write_comment","( node, output)",""],["write_document","REXML::Formatters::Default","REXML/Formatters/Default.html#method-i-write_document","( node, output )",""],["write_document","REXML::Formatters::Pretty","REXML/Formatters/Pretty.html#method-i-write_document","( node, output )",""],["write_element","REXML::Formatters::Default","REXML/Formatters/Default.html#method-i-write_element","( node, output )",""],["write_element","REXML::Formatters::Pretty","REXML/Formatters/Pretty.html#method-i-write_element","(node, output)",""],["write_element","REXML::Formatters::Transitive","REXML/Formatters/Transitive.html#method-i-write_element","( node, output )",""],["write_instruction","REXML::Formatters::Default","REXML/Formatters/Default.html#method-i-write_instruction","( node, output )",""],["write_text","REXML::Formatters::Default","REXML/Formatters/Default.html#method-i-write_text","( node, output )",""],["write_text","REXML::Formatters::Pretty","REXML/Formatters/Pretty.html#method-i-write_text","( node, output )",""],["write_text","REXML::Formatters::Transitive","REXML/Formatters/Transitive.html#method-i-write_text","( node, output )",""],["write_with_substitution","REXML::Text","REXML/Text.html#method-i-write_with_substitution","(out, input)","
Writes out text, substituting special characters beforehand.
out
A String, IO, or any other object supporting …\n"],["xml_decl","REXML::Document","REXML/Document.html#method-i-xml_decl","()","Returns the XMLDecl object for the document, if it exists, otherwise the default XMLDecl object:\n\n
d = REXML::Document.new('<?xml ...\n"],["xmldecl","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-xmldecl","(version, encoding, standalone)","Called when an XML PI is encountered in the document. EG: <?xml version=“1.0” encoding=“utf”?> …\n"],["xmldecl","REXML::StreamListener","REXML/StreamListener.html#method-i-xmldecl","(version, encoding, standalone)","
Called when an XML PI is encountered in the document. EG: <?xml version=“1.0” encoding=“utf”?> …\n"],["xmldecl","REXML::XMLDecl","REXML/XMLDecl.html#method-i-xmldecl","(version, encoding, standalone)",""],["xmldecl?","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-xmldecl-3F","()","
Content: [ String version, String encoding, String standalone ]\n"],["xpath","REXML::Attribute","REXML/Attribute.html#method-i-xpath","()",""],["xpath","REXML::Element","REXML/Element.html#method-i-xpath","()","
Returns the string xpath to the element relative to the most distant parent:\n\n
d = REXML::Document.new('<a><b><c/></b></a>') ...\n\n"],["xpath","REXML::Text","REXML/Text.html#method-i-xpath","()","FIXME This probably won’t work properly\n"],["LICENSE","","LICENSE_txt.html","","
Copyright © 1993-2013 Yukihiro Matsumoto. All rights reserved.\n
Redistribution and use in source and …\n"],["NEWS","","NEWS_md.html","","
News\n
3.3.6 - 2024-08-22 {#version-3-3-6}\n
Improvements\n"],["README","","README_md.html","","
REXML\n
REXML was inspired by the Electric XML library for Java, which features an easy-to-use API, small …\n"],["context","","doc/rexml/context_rdoc.html","","
Element Context\n
Notes:\n
All code on this page presupposes that the following has been executed:\n"],["child","","doc/rexml/tasks/rdoc/child_rdoc.html","","
Class Child\n
Class Child includes module Node; see Tasks for Node.\n
Tasks on this page:\n"],["document","","doc/rexml/tasks/rdoc/document_rdoc.html","","
Class Document\n
Class Document has methods from its superclasses and included modules; see:\n
Tasks for Element …\n"],["element","","doc/rexml/tasks/rdoc/element_rdoc.html","","
Class Element\n
Class Element has methods from its superclasses and included modules; see:\n
Tasks for Parent …\n"],["node","","doc/rexml/tasks/rdoc/node_rdoc.html","","
Module Node\n
Tasks on this page:\n
Siblings\n"],["parent","","doc/rexml/tasks/rdoc/parent_rdoc.html","","
Class Parent\n
Class Parent has methods from its superclasses and included modules; see:\n
Tasks for Child …\n"],["child_toc","","doc/rexml/tasks/tocs/child_toc_rdoc.html","","
Tasks on this page:\n
Relationships\n
Task: Set the Parent\n"],["document_toc","","doc/rexml/tasks/tocs/document_toc_rdoc.html","","
Tasks on this page:\n
New Document\n
Task: Create an Empty Document\n"],["element_toc","","doc/rexml/tasks/tocs/element_toc_rdoc.html","","
Tasks on this page:\n
New Element\n
Task: Create a Default Element\n"],["master_toc","","doc/rexml/tasks/tocs/master_toc_rdoc.html","","
Tasks\n
Child\n
Relationships\n"],["node_toc","","doc/rexml/tasks/tocs/node_toc_rdoc.html","","
Tasks on this page:\n
Siblings\n
Task: Find Previous Sibling\n"],["parent_toc","","doc/rexml/tasks/tocs/parent_toc_rdoc.html","","
Tasks on this page:\n
Queries\n
Task: Get the Count of Children\n"],["tutorial","","doc/rexml/tutorial_rdoc.html","","
REXML Tutorial\n
Why REXML?\n
Ruby’s REXML library is part of the Ruby distribution, so using it requires …\n"]]}} \ No newline at end of file +var search_data = {"index":{"searchIndex":["rexml","attlistdecl","attribute","attributes","cdata","child","comment","dclonable","dtd","attlistdecl","elementdecl","entitydecl","notationdecl","parser","declaration","doctype","document","element","elementdecl","elements","encoding","entity","entityconst","externalentity","formatters","default","pretty","transitive","functions","iosource","instruction","light","node","namespace","node","notationdecl","output","parent","parseexception","parsers","baseparser","private","enumerabletally","lightparser","pullevent","pullparser","sax2parser","streamparser","stringscannercaptures","treeparser","ultralightparser","xpathparser","quickpath","referencewriter","sax2listener","security","source","private","sourcefactory","streamlistener","stringscannercheckscanstring","text","undefinednamespaceexception","validation","choice","event","interleave","oneormore","optional","ref","relaxng","sequence","state","validationexception","validator","zeroormore","xmldecl","xmltokens","xpath","xpathnode","xpathparser","<<()","<<()","<<()","<<()","<<()","<<()","<<()","<<()","<<()","<=>()","<=>()","==()","==()","==()","==()","==()","=~()","[]()","[]()","[]()","[]()","[]()","[]()","[]()","[]=()","[]=()","[]=()","[]=()","[]=()","abbreviate()","add()","add()","add()","add()","add()","add_attribute()","add_attributes()","add_element()","add_element()","add_event_to_arry()","add_event_to_arry()","add_listener()","add_listener()","add_listener()","add_listener()","add_listener()","add_listener()","add_listener()","add_namespace()","add_text()","attlistdecl()","attlistdecl()","attlistdecl?()","attribute()","attribute()","attribute_of()","attributes_of()","axe()","boolean()","buffer()","buffer_encoding=()","bytes()","captures()","cdata()","cdata()","cdata?()","cdatas()","ceiling()","characters()","check()","check()","children()","children()","clone()","clone()","clone()","clone()","clone()","clone()","clone()","clone()","clone()","collect()","comment()","comment()","comment?()","comments()","compare_language()","concat()","contains()","context()","context()","context=()","count()","create_from()","current_line()","current_line()","dclone()","deafen()","decode()","deep_clone()","default()","delete()","delete()","delete()","delete_all()","delete_all()","delete_at()","delete_attribute()","delete_element()","delete_if()","delete_namespace()","doctype()","doctype()","doctype()","doctype()","doctype()","doctype?()","doctype_end()","document()","document()","document()","done?()","dowrite()","drop_parsed_content()","dump()","each()","each()","each()","each()","each()","each()","each()","each()","each_attribute()","each_child()","each_element()","each_element_with_attribute()","each_element_with_text()","each_index()","each_recursive()","element=()","elementdecl()","elementdecl()","elementdecl?()","empty?()","empty?()","empty?()","empty?()","empty?()","encode()","encoding()","encoding=()","encoding=()","encoding=()","end_document()","end_element()","end_element?()","end_prefix_mapping()","ensure_buffer()","ensure_buffer()","entity()","entity()","entity()","entity?()","entity_expansion_count()","entity_expansion_count()","entity_expansion_count()","entity_expansion_limit()","entity_expansion_limit()","entity_expansion_limit=()","entity_expansion_limit=()","entity_expansion_limit=()","entity_expansion_limit=()","entity_expansion_limit=()","entity_expansion_text_limit()","entity_expansion_text_limit()","entity_expansion_text_limit=()","entity_expansion_text_limit=()","entity_expansion_text_limit=()","entity_expansion_text_limit=()","entity_expansion_text_limit=()","entitydecl()","entitydecl()","entitydecl?()","error?()","event_type()","expand()","expand_ref_in()","expanded_name()","expected()","expected()","expected()","expected()","expected()","expected()","false()","filter()","find_first_recursive()","first()","first()","first()","floor()","fully_expanded_name()","function()","generate_event()","get_attribute()","get_attribute_ns()","get_elements()","get_first()","get_namespace()","get_text()","has_attributes?()","has_elements?()","has_name?()","has_name?()","has_next?()","has_text?()","hash()","id()","ignore_whitespace_nodes()","include?()","indent()","indent_text()","index()","index()","index_in_parent()","inject()","insert_after()","insert_before()","inspect()","inspect()","inspect()","inspect()","inspect()","inspect()","inspect()","inspect()","inspect()","inspect()","inspect()","instruction()","instruction?()","instructions()","lang()","last()","length()","length()","line()","listen()","local_name()","local_name()","local_name=()","match()","match()","match()","match()","match()","matches?()","matches?()","matches?()","matches?()","matches?()","matches?()","matches?()","method_missing()","name()","name()","name()","name()","name()","name=()","name=()","namespace()","namespace()","namespace()","namespace=()","namespace_context()","namespace_context=()","namespace_uri()","namespaces()","namespaces()","namespaces=()","namespaces=()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","new()","next()","next()","next()","next()","next()","next()","next_current()","next_element()","next_sibling=()","next_sibling_node()","node_type()","node_type()","node_type()","node_type()","node_type()","node_type()","node_type()","node_type()","node_type()","node_type()","normalize()","normalize_space()","normalized()","normalized=()","not()","notation()","notationdecl()","notationdecl()","notationdecl?()","notations()","nowrite()","number()","old_enc=()","parent()","parent()","parent=()","parent=()","parent=()","parent?()","parent?()","parse()","parse()","parse()","parse()","parse()","parse()","parse()","parse()","parse_args()","parse_helper()","parse_source()","parse_source()","parse_stream()","peek()","peek()","position()","position()","position()","position()","position()","position=()","preciate_to_string()","predicate()","predicate()","predicate()","predicate_to_path()","prefix()","prefix()","prefixes()","prefixes()","previous=()","previous_element()","previous_sibling=()","previous_sibling_node()","processing_instruction()","processing_instruction()","progress()","public()","pull()","pull()","push()","raw()","read()","read()","read_until()","read_until()","receive()","record_entity_expansion()","remove()","remove()","replace_child()","replace_with()","reset()","reset()","reset()","reset()","reset()","rewind()","rewind()","root()","root()","root()","root_node()","round()","scan()","send()","single?()","singleton_method_added()","size()","size()","size()","size()","source()","stand_alone?()","start_document()","start_element()","start_element?()","start_prefix_mapping()","starts_with()","stream=()","string()","string_length()","string_value()","substring()","substring_after()","substring_before()","sum()","system()","tag_end()","tag_start()","tally()","text()","text()","text()","text=()","text=()","text?()","texts()","to_a()","to_a()","to_a()","to_s()","to_s()","to_s()","to_s()","to_s()","to_s()","to_s()","to_s()","to_s()","to_s()","to_s()","to_s()","to_s()","to_s()","to_s()","to_s()","to_string()","translate()","true()","unnormalize()","unnormalized()","unshift()","unshift()","unshift()","validate()","value()","value()","value()","value=()","variables()","variables=()","variables=()","version()","whitespace()","wrap()","write()","write()","write()","write()","write()","write()","write()","write()","write()","write()","write()","write()","write()","write()","write()","write()","write()","write()","write_cdata()","write_cdata()","write_comment()","write_comment()","write_document()","write_document()","write_element()","write_element()","write_element()","write_instruction()","write_text()","write_text()","write_text()","write_with_substitution()","xml_decl()","xmldecl()","xmldecl()","xmldecl()","xmldecl?()","xpath()","xpath()","xpath()","license","news","readme","context","child","document","element","node","parent","child_toc","document_toc","element_toc","master_toc","node_toc","parent_toc","tutorial"],"longSearchIndex":["rexml","rexml::attlistdecl","rexml::attribute","rexml::attributes","rexml::cdata","rexml::child","rexml::comment","rexml::dclonable","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::baseparser::private","rexml::parsers::enumerabletally","rexml::parsers::lightparser","rexml::parsers::pullevent","rexml::parsers::pullparser","rexml::parsers::sax2parser","rexml::parsers::streamparser","rexml::parsers::stringscannercaptures","rexml::parsers::treeparser","rexml::parsers::ultralightparser","rexml::parsers::xpathparser","rexml::quickpath","rexml::referencewriter","rexml::sax2listener","rexml::security","rexml::source","rexml::source::private","rexml::sourcefactory","rexml::streamlistener","rexml::stringscannercheckscanstring","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::xpathnode","rexml::xpathparser","rexml::attributes#<<()","rexml::document#<<()","rexml::elements#<<()","rexml::light::node#<<()","rexml::output#<<()","rexml::parent#<<()","rexml::text#<<()","rexml::validation::choice#<<()","rexml::validation::state#<<()","rexml::comment#<=>()","rexml::text#<=>()","rexml::attribute#==()","rexml::comment#==()","rexml::instruction#==()","rexml::validation::event#==()","rexml::xmldecl#==()","rexml::light::node#=~()","rexml::attlistdecl#[]()","rexml::attributes#[]()","rexml::element#[]()","rexml::elements#[]()","rexml::light::node#[]()","rexml::parent#[]()","rexml::parsers::pullevent#[]()","rexml::attributes#[]=()","rexml::elements#[]=()","rexml::light::node#[]=()","rexml::parent#[]=()","rexml::xpathparser#[]=()","rexml::parsers::xpathparser#abbreviate()","rexml::attributes#add()","rexml::doctype#add()","rexml::document#add()","rexml::elements#add()","rexml::parent#add()","rexml::element#add_attribute()","rexml::element#add_attributes()","rexml::document#add_element()","rexml::element#add_element()","rexml::validation::choice#add_event_to_arry()","rexml::validation::state#add_event_to_arry()","rexml::parsers::baseparser#add_listener()","rexml::parsers::lightparser#add_listener()","rexml::parsers::pullparser#add_listener()","rexml::parsers::sax2parser#add_listener()","rexml::parsers::streamparser#add_listener()","rexml::parsers::treeparser#add_listener()","rexml::parsers::ultralightparser#add_listener()","rexml::element#add_namespace()","rexml::element#add_text()","rexml::sax2listener#attlistdecl()","rexml::streamlistener#attlistdecl()","rexml::parsers::pullevent#attlistdecl?()","rexml::element#attribute()","rexml::quickpath::attribute()","rexml::doctype#attribute_of()","rexml::doctype#attributes_of()","rexml::quickpath::axe()","rexml::functions::boolean()","rexml::source#buffer()","rexml::source#buffer_encoding=()","rexml::child#bytes()","rexml::parsers::stringscannercaptures#captures()","rexml::sax2listener#cdata()","rexml::streamlistener#cdata()","rexml::parsers::pullevent#cdata?()","rexml::element#cdatas()","rexml::functions::ceiling()","rexml::sax2listener#characters()","rexml::stringscannercheckscanstring#check()","rexml::text::check()","rexml::light::node#children()","rexml::parent#children()","rexml::attribute#clone()","rexml::cdata#clone()","rexml::comment#clone()","rexml::doctype#clone()","rexml::document#clone()","rexml::element#clone()","rexml::instruction#clone()","rexml::text#clone()","rexml::xmldecl#clone()","rexml::elements#collect()","rexml::sax2listener#comment()","rexml::streamlistener#comment()","rexml::parsers::pullevent#comment?()","rexml::element#comments()","rexml::functions::compare_language()","rexml::functions::concat()","rexml::functions::contains()","rexml::doctype#context()","rexml::parseexception#context()","rexml::functions::context=()","rexml::functions::count()","rexml::sourcefactory::create_from()","rexml::iosource#current_line()","rexml::source#current_line()","rexml::dclonable#dclone()","rexml::parsers::sax2parser#deafen()","rexml::encoding#decode()","rexml::parent#deep_clone()","rexml::xmldecl::default()","rexml::attributes#delete()","rexml::elements#delete()","rexml::parent#delete()","rexml::attributes#delete_all()","rexml::elements#delete_all()","rexml::parent#delete_at()","rexml::element#delete_attribute()","rexml::element#delete_element()","rexml::parent#delete_if()","rexml::element#delete_namespace()","rexml::attribute#doctype()","rexml::document#doctype()","rexml::sax2listener#doctype()","rexml::streamlistener#doctype()","rexml::text#doctype()","rexml::parsers::pullevent#doctype?()","rexml::streamlistener#doctype_end()","rexml::child#document()","rexml::document#document()","rexml::element#document()","rexml::validation::event#done?()","rexml::xmldecl#dowrite()","rexml::source#drop_parsed_content()","rexml::validation::validator#dump()","rexml::attlistdecl#each()","rexml::attributes#each()","rexml::elements#each()","rexml::light::node#each()","rexml::parent#each()","rexml::parsers::pullparser#each()","rexml::quickpath::each()","rexml::xpath::each()","rexml::attributes#each_attribute()","rexml::parent#each_child()","rexml::element#each_element()","rexml::element#each_element_with_attribute()","rexml::element#each_element_with_text()","rexml::parent#each_index()","rexml::node#each_recursive()","rexml::attribute#element=()","rexml::sax2listener#elementdecl()","rexml::streamlistener#elementdecl()","rexml::parsers::pullevent#elementdecl?()","rexml::elements#empty?()","rexml::iosource#empty?()","rexml::parsers::baseparser#empty?()","rexml::source#empty?()","rexml::text#empty?()","rexml::encoding#encode()","rexml::document#encoding()","rexml::encoding#encoding=()","rexml::source#encoding=()","rexml::xmldecl#encoding=()","rexml::sax2listener#end_document()","rexml::sax2listener#end_element()","rexml::parsers::pullevent#end_element?()","rexml::sax2listener#end_prefix_mapping()","rexml::iosource#ensure_buffer()","rexml::source#ensure_buffer()","rexml::doctype#entity()","rexml::parsers::baseparser#entity()","rexml::streamlistener#entity()","rexml::parsers::pullevent#entity?()","rexml::parsers::pullparser#entity_expansion_count()","rexml::parsers::sax2parser#entity_expansion_count()","rexml::parsers::streamparser#entity_expansion_count()","rexml::document::entity_expansion_limit()","rexml::security::entity_expansion_limit()","rexml::document::entity_expansion_limit=()","rexml::parsers::pullparser#entity_expansion_limit=()","rexml::parsers::sax2parser#entity_expansion_limit=()","rexml::parsers::streamparser#entity_expansion_limit=()","rexml::security::entity_expansion_limit=()","rexml::document::entity_expansion_text_limit()","rexml::security::entity_expansion_text_limit()","rexml::document::entity_expansion_text_limit=()","rexml::parsers::pullparser#entity_expansion_text_limit=()","rexml::parsers::sax2parser#entity_expansion_text_limit=()","rexml::parsers::streamparser#entity_expansion_text_limit=()","rexml::security::entity_expansion_text_limit=()","rexml::sax2listener#entitydecl()","rexml::streamlistener#entitydecl()","rexml::parsers::pullevent#entitydecl?()","rexml::parsers::pullevent#error?()","rexml::parsers::pullevent#event_type()","rexml::parsers::xpathparser#expand()","rexml::validation::state#expand_ref_in()","rexml::document#expanded_name()","rexml::validation::choice#expected()","rexml::validation::interleave#expected()","rexml::validation::oneormore#expected()","rexml::validation::optional#expected()","rexml::validation::state#expected()","rexml::validation::zeroormore#expected()","rexml::functions::false()","rexml::quickpath::filter()","rexml::node#find_first_recursive()","rexml::quickpath::first()","rexml::xpath::first()","rexml::xpathparser#first()","rexml::functions::floor()","rexml::namespace#fully_expanded_name()","rexml::quickpath::function()","rexml::validation::state#generate_event()","rexml::attributes#get_attribute()","rexml::attributes#get_attribute_ns()","rexml::element#get_elements()","rexml::xpathparser#get_first()","rexml::functions::get_namespace()","rexml::element#get_text()","rexml::element#has_attributes?()","rexml::element#has_elements?()","rexml::light::node#has_name?()","rexml::namespace#has_name?()","rexml::parsers::baseparser#has_next?()","rexml::element#has_text?()","rexml::attribute#hash()","rexml::functions::id()","rexml::element#ignore_whitespace_nodes()","rexml::attlistdecl#include?()","rexml::node#indent()","rexml::text#indent_text()","rexml::elements#index()","rexml::parent#index()","rexml::node#index_in_parent()","rexml::elements#inject()","rexml::parent#insert_after()","rexml::parent#insert_before()","rexml::attribute#inspect()","rexml::element#inspect()","rexml::instruction#inspect()","rexml::parsers::pullevent#inspect()","rexml::text#inspect()","rexml::validation::choice#inspect()","rexml::validation::event#inspect()","rexml::validation::interleave#inspect()","rexml::validation::ref#inspect()","rexml::validation::state#inspect()","rexml::xmldecl#inspect()","rexml::streamlistener#instruction()","rexml::parsers::pullevent#instruction?()","rexml::element#instructions()","rexml::functions::lang()","rexml::functions::last()","rexml::attributes#length()","rexml::parent#length()","rexml::parseexception#line()","rexml::parsers::sax2parser#listen()","rexml::functions::local_name()","rexml::light::node#local_name()","rexml::light::node#local_name=()","rexml::iosource#match()","rexml::quickpath::match()","rexml::source#match()","rexml::xpath::match()","rexml::xpathparser#match()","rexml::entity::matches?()","rexml::validation::choice#matches?()","rexml::validation::event#matches?()","rexml::validation::interleave#matches?()","rexml::validation::oneormore#matches?()","rexml::validation::optional#matches?()","rexml::validation::sequence#matches?()","rexml::quickpath::method_missing()","rexml::document#name()","rexml::functions::name()","rexml::light::node#name()","rexml::notationdecl#name()","rexml::quickpath::name()","rexml::light::node#name=()","rexml::namespace#name=()","rexml::attribute#namespace()","rexml::element#namespace()","rexml::light::node#namespace()","rexml::light::node#namespace=()","rexml::functions::namespace_context()","rexml::functions::namespace_context=()","rexml::functions::namespace_uri()","rexml::attributes#namespaces()","rexml::element#namespaces()","rexml::parsers::xpathparser#namespaces=()","rexml::xpathparser#namespaces=()","rexml::attlistdecl::new()","rexml::attribute::new()","rexml::attributes::new()","rexml::cdata::new()","rexml::child::new()","rexml::comment::new()","rexml::dtd::elementdecl::new()","rexml::dtd::entitydecl::new()","rexml::dtd::notationdecl::new()","rexml::declaration::new()","rexml::doctype::new()","rexml::document::new()","rexml::element::new()","rexml::elementdecl::new()","rexml::elements::new()","rexml::entity::new()","rexml::externalentity::new()","rexml::formatters::default::new()","rexml::formatters::pretty::new()","rexml::formatters::transitive::new()","rexml::iosource::new()","rexml::instruction::new()","rexml::light::node::new()","rexml::notationdecl::new()","rexml::output::new()","rexml::parent::new()","rexml::parseexception::new()","rexml::parsers::baseparser::new()","rexml::parsers::lightparser::new()","rexml::parsers::pullevent::new()","rexml::parsers::pullparser::new()","rexml::parsers::sax2parser::new()","rexml::parsers::streamparser::new()","rexml::parsers::treeparser::new()","rexml::parsers::ultralightparser::new()","rexml::referencewriter::new()","rexml::source::new()","rexml::text::new()","rexml::undefinednamespaceexception::new()","rexml::validation::choice::new()","rexml::validation::event::new()","rexml::validation::interleave::new()","rexml::validation::oneormore::new()","rexml::validation::ref::new()","rexml::validation::relaxng::new()","rexml::validation::state::new()","rexml::validation::validationexception::new()","rexml::xmldecl::new()","rexml::xpathnode::new()","rexml::xpathparser::new()","rexml::validation::choice#next()","rexml::validation::interleave#next()","rexml::validation::oneormore#next()","rexml::validation::optional#next()","rexml::validation::state#next()","rexml::validation::zeroormore#next()","rexml::validation::interleave#next_current()","rexml::element#next_element()","rexml::child#next_sibling=()","rexml::node#next_sibling_node()","rexml::attlistdecl#node_type()","rexml::attribute#node_type()","rexml::comment#node_type()","rexml::doctype#node_type()","rexml::document#node_type()","rexml::element#node_type()","rexml::instruction#node_type()","rexml::light::node#node_type()","rexml::text#node_type()","rexml::xmldecl#node_type()","rexml::parsers::baseparser#normalize()","rexml::functions::normalize_space()","rexml::entity#normalized()","rexml::attribute#normalized=()","rexml::functions::not()","rexml::doctype#notation()","rexml::sax2listener#notationdecl()","rexml::streamlistener#notationdecl()","rexml::parsers::pullevent#notationdecl?()","rexml::doctype#notations()","rexml::xmldecl#nowrite()","rexml::functions::number()","rexml::xmldecl#old_enc=()","rexml::elements#parent()","rexml::light::node#parent()","rexml::child#parent=()","rexml::light::node#parent=()","rexml::text#parent=()","rexml::node#parent?()","rexml::parent#parent?()","rexml::dtd::parser::parse()","rexml::parsers::lightparser#parse()","rexml::parsers::sax2parser#parse()","rexml::parsers::streamparser#parse()","rexml::parsers::treeparser#parse()","rexml::parsers::ultralightparser#parse()","rexml::parsers::xpathparser#parse()","rexml::xpathparser#parse()","rexml::quickpath::parse_args()","rexml::dtd::parser::parse_helper()","rexml::dtd::entitydecl::parse_source()","rexml::dtd::notationdecl::parse_source()","rexml::document::parse_stream()","rexml::parsers::baseparser#peek()","rexml::parsers::pullparser#peek()","rexml::functions::position()","rexml::parseexception#position()","rexml::parsers::baseparser#position()","rexml::source#position()","rexml::xpathnode#position()","rexml::source#position=()","rexml::parsers::xpathparser#preciate_to_string()","rexml::parsers::xpathparser#predicate()","rexml::quickpath::predicate()","rexml::xpathparser#predicate()","rexml::parsers::xpathparser#predicate_to_path()","rexml::attribute#prefix()","rexml::light::node#prefix()","rexml::attributes#prefixes()","rexml::element#prefixes()","rexml::validation::state#previous=()","rexml::element#previous_element()","rexml::child#previous_sibling=()","rexml::node#previous_sibling_node()","rexml::functions::processing_instruction()","rexml::sax2listener#processing_instruction()","rexml::sax2listener#progress()","rexml::doctype#public()","rexml::parsers::baseparser#pull()","rexml::parsers::pullparser#pull()","rexml::parent#push()","rexml::element#raw()","rexml::iosource#read()","rexml::source#read()","rexml::iosource#read_until()","rexml::source#read_until()","rexml::validation::relaxng#receive()","rexml::document#record_entity_expansion()","rexml::attribute#remove()","rexml::child#remove()","rexml::parent#replace_child()","rexml::child#replace_with()","rexml::validation::choice#reset()","rexml::validation::interleave#reset()","rexml::validation::oneormore#reset()","rexml::validation::state#reset()","rexml::validation::validator#reset()","rexml::parsers::lightparser#rewind()","rexml::parsers::ultralightparser#rewind()","rexml::document#root()","rexml::element#root()","rexml::light::node#root()","rexml::element#root_node()","rexml::functions::round()","rexml::stringscannercheckscanstring#scan()","rexml::functions::send()","rexml::validation::event#single?()","rexml::functions::singleton_method_added()","rexml::attributes#size()","rexml::elements#size()","rexml::light::node#size()","rexml::parent#size()","rexml::parsers::sax2parser#source()","rexml::document#stand_alone?()","rexml::sax2listener#start_document()","rexml::sax2listener#start_element()","rexml::parsers::pullevent#start_element?()","rexml::sax2listener#start_prefix_mapping()","rexml::functions::starts_with()","rexml::parsers::baseparser#stream=()","rexml::functions::string()","rexml::functions::string_length()","rexml::functions::string_value()","rexml::functions::substring()","rexml::functions::substring_after()","rexml::functions::substring_before()","rexml::functions::sum()","rexml::doctype#system()","rexml::streamlistener#tag_end()","rexml::streamlistener#tag_start()","rexml::parsers::enumerabletally#tally()","rexml::element#text()","rexml::functions::text()","rexml::streamlistener#text()","rexml::element#text=()","rexml::light::node#text=()","rexml::parsers::pullevent#text?()","rexml::element#texts()","rexml::attributes#to_a()","rexml::elements#to_a()","rexml::parent#to_a()","rexml::attribute#to_s()","rexml::cdata#to_s()","rexml::dtd::entitydecl#to_s()","rexml::dtd::notationdecl#to_s()","rexml::declaration#to_s()","rexml::entity#to_s()","rexml::externalentity#to_s()","rexml::light::node#to_s()","rexml::node#to_s()","rexml::notationdecl#to_s()","rexml::output#to_s()","rexml::parseexception#to_s()","rexml::text#to_s()","rexml::validation::event#to_s()","rexml::validation::ref#to_s()","rexml::validation::state#to_s()","rexml::attribute#to_string()","rexml::functions::translate()","rexml::functions::true()","rexml::parsers::baseparser#unnormalize()","rexml::entity#unnormalized()","rexml::parent#unshift()","rexml::parsers::baseparser#unshift()","rexml::parsers::pullparser#unshift()","rexml::validation::validator#validate()","rexml::attribute#value()","rexml::cdata#value()","rexml::text#value()","rexml::text#value=()","rexml::functions::variables()","rexml::functions::variables=()","rexml::xpathparser#variables=()","rexml::document#version()","rexml::element#whitespace()","rexml::text#wrap()","rexml::attlistdecl#write()","rexml::attribute#write()","rexml::cdata#write()","rexml::comment#write()","rexml::dtd::entitydecl#write()","rexml::dtd::notationdecl#write()","rexml::declaration#write()","rexml::doctype#write()","rexml::document#write()","rexml::element#write()","rexml::entity#write()","rexml::externalentity#write()","rexml::formatters::default#write()","rexml::instruction#write()","rexml::notationdecl#write()","rexml::referencewriter#write()","rexml::text#write()","rexml::xmldecl#write()","rexml::formatters::default#write_cdata()","rexml::formatters::pretty#write_cdata()","rexml::formatters::default#write_comment()","rexml::formatters::pretty#write_comment()","rexml::formatters::default#write_document()","rexml::formatters::pretty#write_document()","rexml::formatters::default#write_element()","rexml::formatters::pretty#write_element()","rexml::formatters::transitive#write_element()","rexml::formatters::default#write_instruction()","rexml::formatters::default#write_text()","rexml::formatters::pretty#write_text()","rexml::formatters::transitive#write_text()","rexml::text#write_with_substitution()","rexml::document#xml_decl()","rexml::sax2listener#xmldecl()","rexml::streamlistener#xmldecl()","rexml::xmldecl#xmldecl()","rexml::parsers::pullevent#xmldecl?()","rexml::attribute#xpath()","rexml::element#xpath()","rexml::text#xpath()","","","","","","","","","","","","","","","",""],"info":[["REXML","","REXML.html","","
Module REXML provides classes and methods for parsing, editing, and generating XML.\n
Implementation\n
REXML: …\n"],["REXML::AttlistDecl","","REXML/AttlistDecl.html","","
This class needs:\n
Documentation\n
Work! Not all types of attlists are intelligently parsed, so we just\n"],["REXML::Attribute","","REXML/Attribute.html","","
Defines an Element Attribute; IE, a attribute=value pair, as in: <element attribute=“value”/>. …\n"],["REXML::Attributes","","REXML/Attributes.html","","
A class that defines the set of Attributes of an Element and provides operations for accessing elements …\n"],["REXML::CData","","REXML/CData.html","",""],["REXML::Child","","REXML/Child.html","","
A Child object is something contained by a parent, and this class contains methods to support that. …\n"],["REXML::Comment","","REXML/Comment.html","","
Represents an XML comment; that is, text between <!– … –>\n"],["REXML::DClonable","","REXML/DClonable.html","",""],["REXML::DTD","","REXML/DTD.html","",""],["REXML::DTD::AttlistDecl","","REXML/DTD/AttlistDecl.html","",""],["REXML::DTD::ElementDecl","","REXML/DTD/ElementDecl.html","",""],["REXML::DTD::EntityDecl","","REXML/DTD/EntityDecl.html","",""],["REXML::DTD::NotationDecl","","REXML/DTD/NotationDecl.html","",""],["REXML::DTD::Parser","","REXML/DTD/Parser.html","",""],["REXML::Declaration","","REXML/Declaration.html","","
This is an abstract class. You never use this directly; it serves as a parent class for the specific …\n"],["REXML::DocType","","REXML/DocType.html","","
Represents an XML DOCTYPE declaration; that is, the contents of <!DOCTYPE … >. DOCTYPES can …\n"],["REXML::Document","","REXML/Document.html","","
Represents an XML document.\n
A document may have:\n
A single child that may be accessed via method #root. …\n"],["REXML::Element","","REXML/Element.html","","
An REXML::Element object represents an XML element.\n
An element:\n
Has a name (string).\n"],["REXML::ElementDecl","","REXML/ElementDecl.html","",""],["REXML::Elements","","REXML/Elements.html","","
A class which provides filtering of children for Elements, and XPath search support. You are expected …\n"],["REXML::Encoding","","REXML/Encoding.html","",""],["REXML::Entity","","REXML/Entity.html","",""],["REXML::EntityConst","","REXML/EntityConst.html","","
This is a set of entity constants – the ones defined in the XML specification. These are
gt
,lt
,amp
…\n"],["REXML::ExternalEntity","","REXML/ExternalEntity.html","",""],["REXML::Formatters","","REXML/Formatters.html","",""],["REXML::Formatters::Default","","REXML/Formatters/Default.html","",""],["REXML::Formatters::Pretty","","REXML/Formatters/Pretty.html","","Pretty-prints an XML document. This destroys whitespace in text nodes and will insert carriage returns …\n"],["REXML::Formatters::Transitive","","REXML/Formatters/Transitive.html","","
The Transitive formatter writes an XML document that parses to an identical document as the source document. …\n"],["REXML::Functions","","REXML/Functions.html","","
If you add a method, keep in mind two things: (1) the first argument will always be a list of nodes from …\n"],["REXML::IOSource","","REXML/IOSource.html","","
A Source that wraps an IO. See the Source class for method documentation\n"],["REXML::Instruction","","REXML/Instruction.html","","
Represents an XML Instruction; IE, <? … ?> TODO: Add parent arg (3rd arg) to constructor\n"],["REXML::Light","","REXML/Light.html","",""],["REXML::Light::Node","","REXML/Light/Node.html","","
Represents a tagged XML element. Elements are characterized by having children, attributes, and names, …\n"],["REXML::Namespace","","REXML/Namespace.html","","
Adds named attributes to an object.\n"],["REXML::Node","","REXML/Node.html","","
Represents a node in the tree. Nodes are never encountered except as superclasses of other objects. …\n"],["REXML::NotationDecl","","REXML/NotationDecl.html","",""],["REXML::Output","","REXML/Output.html","",""],["REXML::Parent","","REXML/Parent.html","","
A parent has children, and has methods for accessing them. The Parent class is never encountered except …\n"],["REXML::ParseException","","REXML/ParseException.html","",""],["REXML::Parsers","","REXML/Parsers.html","",""],["REXML::Parsers::BaseParser","","REXML/Parsers/BaseParser.html","","
Using the Pull Parser\n
This API is experimental, and subject to change.\n\n
parser = PullParser.new( "<a>text<b ...\n"],["REXML::Parsers::BaseParser::Private","","REXML/Parsers/BaseParser/Private.html","",""],["REXML::Parsers::EnumerableTally","","REXML/Parsers/EnumerableTally.html","",""],["REXML::Parsers::LightParser","","REXML/Parsers/LightParser.html","",""],["REXML::Parsers::PullEvent","","REXML/Parsers/PullEvent.html","","A parsing event. The contents of the event are accessed as an +Array?, and the type is given either …\n"],["REXML::Parsers::PullParser","","REXML/Parsers/PullParser.html","","
Using the Pull Parser\n
This API is experimental, and subject to change.\n\n
parser = PullParser.new( "<a>text<b ...\n"],["REXML::Parsers::SAX2Parser","","REXML/Parsers/SAX2Parser.html","","SAX2Parser\n"],["REXML::Parsers::StreamParser","","REXML/Parsers/StreamParser.html","",""],["REXML::Parsers::StringScannerCaptures","","REXML/Parsers/StringScannerCaptures.html","",""],["REXML::Parsers::TreeParser","","REXML/Parsers/TreeParser.html","",""],["REXML::Parsers::UltraLightParser","","REXML/Parsers/UltraLightParser.html","",""],["REXML::Parsers::XPathParser","","REXML/Parsers/XPathParser.html","","
You don’t want to use this class. Really. Use XPath, which is a wrapper for this class. Believe …\n"],["REXML::QuickPath","","REXML/QuickPath.html","",""],["REXML::ReferenceWriter","","REXML/ReferenceWriter.html","",""],["REXML::SAX2Listener","","REXML/SAX2Listener.html","","
A template for stream parser listeners. Note that the declarations (attlistdecl, elementdecl, etc) are …\n"],["REXML::Security","","REXML/Security.html","",""],["REXML::Source","","REXML/Source.html","","
A Source can be searched for patterns, and wraps buffers and other objects and provides consumption of …\n"],["REXML::Source::Private","","REXML/Source/Private.html","",""],["REXML::SourceFactory","","REXML/SourceFactory.html","","
Generates Source-s. USE THIS CLASS.\n"],["REXML::StreamListener","","REXML/StreamListener.html","","
A template for stream parser listeners. Note that the declarations (attlistdecl, elementdecl, etc) are …\n"],["REXML::StringScannerCheckScanString","","REXML/StringScannerCheckScanString.html","",""],["REXML::Text","","REXML/Text.html","","
Represents text nodes in an XML document\n"],["REXML::UndefinedNamespaceException","","REXML/UndefinedNamespaceException.html","",""],["REXML::Validation","","REXML/Validation.html","",""],["REXML::Validation::Choice","","REXML/Validation/Choice.html","",""],["REXML::Validation::Event","","REXML/Validation/Event.html","",""],["REXML::Validation::Interleave","","REXML/Validation/Interleave.html","",""],["REXML::Validation::OneOrMore","","REXML/Validation/OneOrMore.html","",""],["REXML::Validation::Optional","","REXML/Validation/Optional.html","",""],["REXML::Validation::Ref","","REXML/Validation/Ref.html","",""],["REXML::Validation::RelaxNG","","REXML/Validation/RelaxNG.html","","
Implemented:\n
empty\n
element\n"],["REXML::Validation::Sequence","","REXML/Validation/Sequence.html","",""],["REXML::Validation::State","","REXML/Validation/State.html","",""],["REXML::Validation::ValidationException","","REXML/Validation/ValidationException.html","",""],["REXML::Validation::Validator","","REXML/Validation/Validator.html","",""],["REXML::Validation::ZeroOrMore","","REXML/Validation/ZeroOrMore.html","",""],["REXML::XMLDecl","","REXML/XMLDecl.html","","
NEEDS DOCUMENTATION\n"],["REXML::XMLTokens","","REXML/XMLTokens.html","","
Defines a number of tokens used for parsing XML. Not for general consumption.\n"],["REXML::XPath","","REXML/XPath.html","","
Wrapper class. Use this class to access the XPath functions.\n"],["REXML::XPathNode","","REXML/XPathNode.html","","
@private\n"],["REXML::XPathParser","","REXML/XPathParser.html","","
You don’t want to use this class. Really. Use XPath, which is a wrapper for this class. Believe …\n"],["<<","REXML::Attributes","REXML/Attributes.html#method-i-3C-3C","( attribute )",""],["<<","REXML::Document","REXML/Document.html#method-i-3C-3C","( child )",""],["<<","REXML::Elements","REXML/Elements.html#method-i-3C-3C","(element=nil)",""],["<<","REXML::Light::Node","REXML/Light/Node.html#method-i-3C-3C","(element)","
Append a child to this element, optionally under a provided namespace. The namespace argument is ignored …\n"],["<<","REXML::Output","REXML/Output.html#method-i-3C-3C","( content )",""],["<<","REXML::Parent","REXML/Parent.html#method-i-3C-3C","( object )",""],["<<","REXML::Text","REXML/Text.html#method-i-3C-3C","( to_append )","
Appends text to this text node. The text is appended in the
raw
mode of this text node.\n
returns
the text …\n"],["<<","REXML::Validation::Choice","REXML/Validation/Choice.html#method-i-3C-3C","( event )",""],["<<","REXML::Validation::State","REXML/Validation/State.html#method-i-3C-3C","( event )",""],["<=>","REXML::Comment","REXML/Comment.html#method-i-3C-3D-3E","(other)","Compares this Comment to another; the contents of the comment are used in the comparison.\n"],["<=>","REXML::Text","REXML/Text.html#method-i-3C-3D-3E","( other )","
other
a String or a Textreturns
the result of (to_s <=> arg.to_s)\n"],["==","REXML::Attribute","REXML/Attribute.html#method-i-3D-3D","( other )","Returns true if other is an Attribute and has the same name and value, false otherwise.\n"],["==","REXML::Comment","REXML/Comment.html#method-i-3D-3D","( other )","
Compares this Comment to another; the contents of the comment are used in the comparison.\n"],["==","REXML::Instruction","REXML/Instruction.html#method-i-3D-3D","( other )","
@return true if other is an Instruction, and the content and target of the other matches the target and …\n"],["==","REXML::Validation::Event","REXML/Validation/Event.html#method-i-3D-3D","( other )",""],["==","REXML::XMLDecl","REXML/XMLDecl.html#method-i-3D-3D","( other )",""],["=~","REXML::Light::Node","REXML/Light/Node.html#method-i-3D~","( path )",""],["[]","REXML::AttlistDecl","REXML/AttlistDecl.html#method-i-5B-5D","(key)","
Access the attlist attribute/value pairs.\n\n
value = attlist_decl[ attribute_name ]\n\n"],["[]","REXML::Attributes","REXML/Attributes.html#method-i-5B-5D","(name)","Returns the value for the attribute given by
name
, if it exists; otherwisenil
. The value returned is …\n"],["[]","REXML::Element","REXML/Element.html#method-i-5B-5D","(name_or_index)","With integer argument
index
given, returns the child at offsetindex
, ornil
if none:\n\nd = REXML::Document.new ...\n\n"],["[]","REXML::Elements","REXML/Elements.html#method-i-5B-5D","( index, name=nil)","Returns the first Element object selected by the arguments, if any found, or
nil
if none found.\nNotes: …\n"],["[]","REXML::Light::Node","REXML/Light/Node.html#method-i-5B-5D","( reference, ns=nil )",""],["[]","REXML::Parent","REXML/Parent.html#method-i-5B-5D","( index )","
Fetches a child at a given index @param index the Integer index of the child to fetch\n"],["[]","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-5B-5D","( start, endd=nil)",""],["[]=","REXML::Attributes","REXML/Attributes.html#method-i-5B-5D-3D","( name, value )","
When
value
is non-nil
, assigns that to the attribute for the givenname
, overwriting the previous value …\n"],["[]=","REXML::Elements","REXML/Elements.html#method-i-5B-5D-3D","( index, element )","Replaces or adds an element.\n
When
eles[index]
exists, replaces it withreplacement_element
and returns …\n"],["[]=","REXML::Light::Node","REXML/Light/Node.html#method-i-5B-5D-3D","( reference, ns, value=nil )","Doesn’t handle namespaces yet\n"],["[]=","REXML::Parent","REXML/Parent.html#method-i-5B-5D-3D","( *args )","
Set an index entry. See Array.[]= @param index the index of the element to set @param opt either the …\n"],["[]=","REXML::XPathParser","REXML/XPathParser.html#method-i-5B-5D-3D","( variable_name, value )",""],["abbreviate","REXML::Parsers::XPathParser","REXML/Parsers/XPathParser.html#method-i-abbreviate","(path_or_parsed)",""],["add","REXML::Attributes","REXML/Attributes.html#method-i-add","( attribute )","
Adds attribute
attribute
, replacing the previous attribute of the same name if it exists; returnsattribute
…\n"],["add","REXML::DocType","REXML/DocType.html#method-i-add","(child)",""],["add","REXML::Document","REXML/Document.html#method-i-add","( child )","Adds an object to the document; returns
self
.\nWhen argument
xml_decl
is given, it must be an REXML::XMLDecl …\n"],["add","REXML::Elements","REXML/Elements.html#method-i-add","(element=nil)","Adds an element; returns the element added.\n
With no argument, creates and adds a new element. The new …\n"],["add","REXML::Parent","REXML/Parent.html#method-i-add","( object )",""],["add_attribute","REXML::Element","REXML/Element.html#method-i-add_attribute","( key, value=nil )","
Adds an attribute to this element, overwriting any existing attribute by the same name.\n
With string argument …\n"],["add_attributes","REXML::Element","REXML/Element.html#method-i-add_attributes","(hash)","
Adds zero or more attributes to the element; returns the argument.\n
If hash argument
hash
is given, each …\n"],["add_element","REXML::Document","REXML/Document.html#method-i-add_element","(arg=nil, arg2=nil)","Adds an element to the document by calling REXML::Element.add_element:\n\n
REXML::Element.add_element(name_or_element, ...\n"],["add_element","REXML::Element","REXML/Element.html#method-i-add_element","(element, attrs=nil)","Adds a child element, optionally setting attributes on the added element; returns the added element. …\n"],["add_event_to_arry","REXML::Validation::Choice","REXML/Validation/Choice.html#method-i-add_event_to_arry","( arry, evt )",""],["add_event_to_arry","REXML::Validation::State","REXML/Validation/State.html#method-i-add_event_to_arry","( arry, evt )",""],["add_listener","REXML::Parsers::BaseParser","REXML/Parsers/BaseParser.html#method-i-add_listener","( listener )",""],["add_listener","REXML::Parsers::LightParser","REXML/Parsers/LightParser.html#method-i-add_listener","( listener )",""],["add_listener","REXML::Parsers::PullParser","REXML/Parsers/PullParser.html#method-i-add_listener","( listener )",""],["add_listener","REXML::Parsers::SAX2Parser","REXML/Parsers/SAX2Parser.html#method-i-add_listener","( listener )",""],["add_listener","REXML::Parsers::StreamParser","REXML/Parsers/StreamParser.html#method-i-add_listener","( listener )",""],["add_listener","REXML::Parsers::TreeParser","REXML/Parsers/TreeParser.html#method-i-add_listener","( listener )",""],["add_listener","REXML::Parsers::UltraLightParser","REXML/Parsers/UltraLightParser.html#method-i-add_listener","( listener )",""],["add_namespace","REXML::Element","REXML/Element.html#method-i-add_namespace","( prefix, uri=nil )","
Adds a namespace to the element; returns
self
.\nWith the single argument
prefix
, adds a namespace using …\n"],["add_text","REXML::Element","REXML/Element.html#method-i-add_text","( text )","Adds text to the element.\n
When string argument
string
is given, returnsnil
.\nIf the element has no child …\n"],["attlistdecl","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-attlistdecl","(element, pairs, contents)","
If a doctype includes an ATTLIST declaration, it will cause this method to be called. The content is …\n"],["attlistdecl","REXML::StreamListener","REXML/StreamListener.html#method-i-attlistdecl","(element_name, attributes, raw_content)","
If a doctype includes an ATTLIST declaration, it will cause this method to be called. The content is …\n"],["attlistdecl?","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-attlistdecl-3F","()","
Content: [ String text ]\n"],["attribute","REXML::Element","REXML/Element.html#method-i-attribute","( name, namespace=nil )","
Returns the string value for the given attribute name.\n
With only argument
name
given, returns the value …\n"],["attribute","REXML::QuickPath","REXML/QuickPath.html#method-c-attribute","( name )",""],["attribute_of","REXML::DocType","REXML/DocType.html#method-i-attribute_of","(element, attribute)",""],["attributes_of","REXML::DocType","REXML/DocType.html#method-i-attributes_of","(element)",""],["axe","REXML::QuickPath","REXML/QuickPath.html#method-c-axe","( elements, axe_name, rest )",""],["boolean","REXML::Functions","REXML/Functions.html#method-c-boolean","(object=@@context[:node])",""],["buffer","REXML::Source","REXML/Source.html#method-i-buffer","()","The current buffer (what we’re going to read next)\n"],["buffer_encoding=","REXML::Source","REXML/Source.html#method-i-buffer_encoding-3D","(encoding)",""],["bytes","REXML::Child","REXML/Child.html#method-i-bytes","()","
This doesn’t yet handle encodings\n"],["captures","REXML::Parsers::StringScannerCaptures","REXML/Parsers/StringScannerCaptures.html#method-i-captures","()",""],["cdata","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-cdata","(content)","
Called when <![CDATA[ … ]]> is encountered in a document. @p content “…”\n"],["cdata","REXML::StreamListener","REXML/StreamListener.html#method-i-cdata","(content)","
Called when <![CDATA[ … ]]> is encountered in a document. @p content “…”\n"],["cdata?","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-cdata-3F","()","
Content: [ String text ]\n"],["cdatas","REXML::Element","REXML/Element.html#method-i-cdatas","()","
Returns a frozen array of the REXML::CData children of the element:\n\n
xml_string = <<-EOT\n <root>\n <![CDATA[foo]]> ...\n"],["ceiling","REXML::Functions","REXML/Functions.html#method-c-ceiling","( number )",""],["characters","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-characters","(text)",""],["check","REXML::StringScannerCheckScanString","REXML/StringScannerCheckScanString.html#method-i-check","(pattern)",""],["check","REXML::Text","REXML/Text.html#method-c-check","(string, pattern, doctype)","check for illegal characters\n"],["children","REXML::Light::Node","REXML/Light/Node.html#method-i-children","()",""],["children","REXML::Parent","REXML/Parent.html#method-i-children","()",""],["clone","REXML::Attribute","REXML/Attribute.html#method-i-clone","()","
Returns a copy of this attribute\n"],["clone","REXML::CData","REXML/CData.html#method-i-clone","()","
Make a copy of this object\n
Examples\n\n
c = CData.new( "Some text" )\nd = c.clone\nd.to_s # -> "Some text"\n\n"],["clone","REXML::Comment","REXML/Comment.html#method-i-clone","()",""],["clone","REXML::DocType","REXML/DocType.html#method-i-clone","()",""],["clone","REXML::Document","REXML/Document.html#method-i-clone","()","Returns the new document resulting from executing
Document.new(self)
. See Document.new.\n"],["clone","REXML::Element","REXML/Element.html#method-i-clone","()","Returns a shallow copy of the element, containing the name and attributes, but not the parent or children: …\n"],["clone","REXML::Instruction","REXML/Instruction.html#method-i-clone","()",""],["clone","REXML::Text","REXML/Text.html#method-i-clone","()",""],["clone","REXML::XMLDecl","REXML/XMLDecl.html#method-i-clone","()",""],["collect","REXML::Elements","REXML/Elements.html#method-i-collect","( xpath=nil )","
Iterates over the elements; returns the array of block return values.\n
With no argument, iterates over …\n"],["comment","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-comment","(comment)","
Called when a comment is encountered. @p comment The content of the comment\n"],["comment","REXML::StreamListener","REXML/StreamListener.html#method-i-comment","(comment)","
Called when a comment is encountered. @p comment The content of the comment\n"],["comment?","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-comment-3F","()","
Content: [ String text ]\n"],["comments","REXML::Element","REXML/Element.html#method-i-comments","()","
Returns a frozen array of the REXML::Comment children of the element:\n\n
xml_string = <<-EOT\n <root>\n ...\n"],["compare_language","REXML::Functions","REXML/Functions.html#method-c-compare_language","(lang1, lang2)",""],["concat","REXML::Functions","REXML/Functions.html#method-c-concat","( *objects )",""],["contains","REXML::Functions","REXML/Functions.html#method-c-contains","( string, test )","Fixed by Mike Stok\n"],["context","REXML::DocType","REXML/DocType.html#method-i-context","()",""],["context","REXML::ParseException","REXML/ParseException.html#method-i-context","()",""],["context=","REXML::Functions","REXML/Functions.html#method-c-context-3D","(value)",""],["count","REXML::Functions","REXML/Functions.html#method-c-count","( node_set )","
Returns the size of the given list of nodes.\n"],["create_from","REXML::SourceFactory","REXML/SourceFactory.html#method-c-create_from","(arg)","
Generates a Source object @param arg Either a String, or an IO @return a Source, or nil if a bad argument …\n"],["current_line","REXML::IOSource","REXML/IOSource.html#method-i-current_line","()","
@return the current line in the source\n"],["current_line","REXML::Source","REXML/Source.html#method-i-current_line","()","
@return the current line in the source\n"],["dclone","REXML::DClonable","REXML/DClonable.html#method-i-dclone","()","
provides a unified
clone
operation, for REXML::XPathParser to use across multiple Object types\n"],["deafen","REXML::Parsers::SAX2Parser","REXML/Parsers/SAX2Parser.html#method-i-deafen","( listener=nil, &blok )",""],["decode","REXML::Encoding","REXML/Encoding.html#method-i-decode","(string)",""],["deep_clone","REXML::Parent","REXML/Parent.html#method-i-deep_clone","()","Deeply clones this object. This creates a complete duplicate of this Parent, including all descendants. …\n"],["default","REXML::XMLDecl","REXML/XMLDecl.html#method-c-default","()","
Only use this if you do not want the XML declaration to be written; this object is ignored by the XML …\n"],["delete","REXML::Attributes","REXML/Attributes.html#method-i-delete","( attribute )","
Removes a specified attribute if it exists; returns the attributes’ element.\n
When string argument …\n"],["delete","REXML::Elements","REXML/Elements.html#method-i-delete","(element)","
Removes an element; returns the removed element, or
nil
if none removed.\nWith integer argument
index
given, …\n"],["delete","REXML::Parent","REXML/Parent.html#method-i-delete","( object )",""],["delete_all","REXML::Attributes","REXML/Attributes.html#method-i-delete_all","( name )","Removes all attributes matching the given
name
; returns an array of the removed attributes:\n\nxml_string ...\n\n"],["delete_all","REXML::Elements","REXML/Elements.html#method-i-delete_all","( xpath )","Removes all elements found via the given
xpath
; returns the array of removed elements, if any, else …\n"],["delete_at","REXML::Parent","REXML/Parent.html#method-i-delete_at","( index )",""],["delete_attribute","REXML::Element","REXML/Element.html#method-i-delete_attribute","(key)","Removes a named attribute if it exists; returns the removed attribute if found, otherwise
nil
:\n\ne = REXML::Element.new('foo') ...\n\n"],["delete_element","REXML::Element","REXML/Element.html#method-i-delete_element","(element)","Deletes a child element.\n
When 1-based integer argument
index
is given, removes and returns the child element …\n"],["delete_if","REXML::Parent","REXML/Parent.html#method-i-delete_if","( &block )",""],["delete_namespace","REXML::Element","REXML/Element.html#method-i-delete_namespace","(namespace=\"xmlns\")","Removes a namespace from the element.\n
With no argument, removes the default namespace:\n\n
d = REXML::Document.new ...\n\n"],["doctype","REXML::Attribute","REXML/Attribute.html#method-i-doctype","()",""],["doctype","REXML::Document","REXML/Document.html#method-i-doctype","()","Returns the DocType object for the document, if it exists, otherwise
nil
:\n\nd = REXML::Document.new('<!DOCTYPE ...\n"],["doctype","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-doctype","(name, pub_sys, long_name, uri)","Handles a doctype declaration. Any attributes of the doctype which are not supplied will be nil. # …\n"],["doctype","REXML::StreamListener","REXML/StreamListener.html#method-i-doctype","(name, pub_sys, long_name, uri)","
Handles a doctype declaration. Any attributes of the doctype which are not supplied will be nil. # …\n"],["doctype","REXML::Text","REXML/Text.html#method-i-doctype","()",""],["doctype?","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-doctype-3F","()","
Content: [ String name, String pub_sys, String long_name, String uri ]\n"],["doctype_end","REXML::StreamListener","REXML/StreamListener.html#method-i-doctype_end","()","
Called when the doctype is done\n"],["document","REXML::Child","REXML/Child.html#method-i-document","()","
Returns — the document this child belongs to, or nil if this child\n\n
belongs to no document\n"],["document","REXML::Document","REXML/Document.html#method-i-document","()",""],["document","REXML::Element","REXML/Element.html#method-i-document","()","
If the element is part of a document, returns that document:\n\n
d = REXML::Document.new('<a><b><c/></b></a>') ...\n\n"],["done?","REXML::Validation::Event","REXML/Validation/Event.html#method-i-done-3F","()",""],["dowrite","REXML::XMLDecl","REXML/XMLDecl.html#method-i-dowrite","()",""],["drop_parsed_content","REXML::Source","REXML/Source.html#method-i-drop_parsed_content","()",""],["dump","REXML::Validation::Validator","REXML/Validation/Validator.html#method-i-dump","()",""],["each","REXML::AttlistDecl","REXML/AttlistDecl.html#method-i-each","(&block)","Iterate over the key/value pairs:\n\n
attlist_decl.each { |attribute_name, attribute_value| ... }\n"],["each","REXML::Attributes","REXML/Attributes.html#method-i-each","()","Calls the given block with each expanded-name/value pair:\n\n
xml_string = <<-EOT\n <root xmlns:foo="http://foo" ...\n"],["each","REXML::Elements","REXML/Elements.html#method-i-each","( xpath=nil )","Iterates over the elements.\n
With no argument, calls the block with each element:\n\n
d = REXML::Document.new(xml_string) ...\n\n"],["each","REXML::Light::Node","REXML/Light/Node.html#method-i-each","()",""],["each","REXML::Parent","REXML/Parent.html#method-i-each","(&block)",""],["each","REXML::Parsers::PullParser","REXML/Parsers/PullParser.html#method-i-each","()",""],["each","REXML::QuickPath","REXML/QuickPath.html#method-c-each","(element, path, namespaces=EMPTY_HASH, &block)",""],["each","REXML::XPath","REXML/XPath.html#method-c-each","(element, path=nil, namespaces=nil, variables={}, options={}, &block)","Iterates over nodes that match the given path, calling the supplied block with the match.\n
element — The …\n"],["each_attribute","REXML::Attributes","REXML/Attributes.html#method-i-each_attribute","()","
Calls the given block with each REXML::Attribute object:\n\n
xml_string = <<-EOT\n <root xmlns:foo="http://foo" ...\n"],["each_child","REXML::Parent","REXML/Parent.html#method-i-each_child","(&block)",""],["each_element","REXML::Element","REXML/Element.html#method-i-each_element","( xpath=nil )","Calls the given block with each child element:\n\n
d = REXML::Document.new '<a><b>b</b><c>b</c><d>d</d><e/></a>' ...\n\n"],["each_element_with_attribute","REXML::Element","REXML/Element.html#method-i-each_element_with_attribute","( key, value=nil, max=0, name=nil )","Calls the given block with each child element that meets given criteria.\n
When only string argument
attr_name
…\n"],["each_element_with_text","REXML::Element","REXML/Element.html#method-i-each_element_with_text","( text=nil, max=0, name=nil )","Calls the given block with each child element that meets given criteria.\n
With no arguments, calls the …\n"],["each_index","REXML::Parent","REXML/Parent.html#method-i-each_index","( &block )",""],["each_recursive","REXML::Node","REXML/Node.html#method-i-each_recursive","()","
Visit all subnodes of
self
recursively\n"],["element=","REXML::Attribute","REXML/Attribute.html#method-i-element-3D","( element )","Sets the element of which this object is an attribute. Normally, this is not directly called.\n
Returns …\n"],["elementdecl","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-elementdecl","(content)","
<!ELEMENT …>\n"],["elementdecl","REXML::StreamListener","REXML/StreamListener.html#method-i-elementdecl","(content)","
<!ELEMENT …>\n"],["elementdecl?","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-elementdecl-3F","()","
Content: [ String text ]\n"],["empty?","REXML::Elements","REXML/Elements.html#method-i-empty-3F","()","
Returns
true
if there are no children,false
otherwise.\n\nd = REXML::Document.new('')\nd.elements.empty? ...\n\n"],["empty?","REXML::IOSource","REXML/IOSource.html#method-i-empty-3F","()",""],["empty?","REXML::Parsers::BaseParser","REXML/Parsers/BaseParser.html#method-i-empty-3F","()","Returns true if there are no more events\n"],["empty?","REXML::Source","REXML/Source.html#method-i-empty-3F","()","
@return true if the Source is exhausted\n"],["empty?","REXML::Text","REXML/Text.html#method-i-empty-3F","()",""],["encode","REXML::Encoding","REXML/Encoding.html#method-i-encode","(string)",""],["encoding","REXML::Document","REXML/Document.html#method-i-encoding","()","
Returns the XMLDecl encoding of the document, if it has been set, otherwise the default encoding:\n\n
d = ...\n"],["encoding=","REXML::Encoding","REXML/Encoding.html#method-i-encoding-3D","(encoding)",""],["encoding=","REXML::Source","REXML/Source.html#method-i-encoding-3D","(enc)","Inherited from Encoding Overridden to support optimized en/decoding\n"],["encoding=","REXML::XMLDecl","REXML/XMLDecl.html#method-i-encoding-3D","( enc )",""],["end_document","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-end_document","()",""],["end_element","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-end_element","(uri, localname, qname)",""],["end_element?","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-end_element-3F","()","
Content: [ String tag_name ]\n"],["end_prefix_mapping","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-end_prefix_mapping","(prefix)",""],["ensure_buffer","REXML::IOSource","REXML/IOSource.html#method-i-ensure_buffer","()",""],["ensure_buffer","REXML::Source","REXML/Source.html#method-i-ensure_buffer","()",""],["entity","REXML::DocType","REXML/DocType.html#method-i-entity","( name )",""],["entity","REXML::Parsers::BaseParser","REXML/Parsers/BaseParser.html#method-i-entity","( reference, entities )",""],["entity","REXML::StreamListener","REXML/StreamListener.html#method-i-entity","(content)","
Called when %foo; is encountered in a doctype declaration. @p content “foo”\n"],["entity?","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-entity-3F","()","
Content: [ String text ]\n"],["entity_expansion_count","REXML::Parsers::PullParser","REXML/Parsers/PullParser.html#method-i-entity_expansion_count","()",""],["entity_expansion_count","REXML::Parsers::SAX2Parser","REXML/Parsers/SAX2Parser.html#method-i-entity_expansion_count","()",""],["entity_expansion_count","REXML::Parsers::StreamParser","REXML/Parsers/StreamParser.html#method-i-entity_expansion_count","()",""],["entity_expansion_limit","REXML::Document","REXML/Document.html#method-c-entity_expansion_limit","()","
Get the entity expansion limit. By default the limit is set to 10000.\n
Deprecated. Use REXML::Security.entity_expansion_limit= …\n"],["entity_expansion_limit","REXML::Security","REXML/Security.html#method-c-entity_expansion_limit","()","
Get the entity expansion limit. By default the limit is set to 10000.\n"],["entity_expansion_limit=","REXML::Document","REXML/Document.html#method-c-entity_expansion_limit-3D","( val )","
Set the entity expansion limit. By default the limit is set to 10000.\n
Deprecated. Use REXML::Security.entity_expansion_limit= …\n"],["entity_expansion_limit=","REXML::Parsers::PullParser","REXML/Parsers/PullParser.html#method-i-entity_expansion_limit-3D","( limit )",""],["entity_expansion_limit=","REXML::Parsers::SAX2Parser","REXML/Parsers/SAX2Parser.html#method-i-entity_expansion_limit-3D","( limit )",""],["entity_expansion_limit=","REXML::Parsers::StreamParser","REXML/Parsers/StreamParser.html#method-i-entity_expansion_limit-3D","( limit )",""],["entity_expansion_limit=","REXML::Security","REXML/Security.html#method-c-entity_expansion_limit-3D","( val )","
Set the entity expansion limit. By default the limit is set to 10000.\n"],["entity_expansion_text_limit","REXML::Document","REXML/Document.html#method-c-entity_expansion_text_limit","()","
Get the entity expansion limit. By default the limit is set to 10240.\n
Deprecated. Use REXML::Security.entity_expansion_text_limit …\n"],["entity_expansion_text_limit","REXML::Security","REXML/Security.html#method-c-entity_expansion_text_limit","()","
Get the entity expansion limit. By default the limit is set to 10240.\n"],["entity_expansion_text_limit=","REXML::Document","REXML/Document.html#method-c-entity_expansion_text_limit-3D","( val )","
Set the entity expansion limit. By default the limit is set to 10240.\n
Deprecated. Use REXML::Security.entity_expansion_text_limit= …\n"],["entity_expansion_text_limit=","REXML::Parsers::PullParser","REXML/Parsers/PullParser.html#method-i-entity_expansion_text_limit-3D","( limit )",""],["entity_expansion_text_limit=","REXML::Parsers::SAX2Parser","REXML/Parsers/SAX2Parser.html#method-i-entity_expansion_text_limit-3D","( limit )",""],["entity_expansion_text_limit=","REXML::Parsers::StreamParser","REXML/Parsers/StreamParser.html#method-i-entity_expansion_text_limit-3D","( limit )",""],["entity_expansion_text_limit=","REXML::Security","REXML/Security.html#method-c-entity_expansion_text_limit-3D","( val )","
Set the entity expansion limit. By default the limit is set to 10240.\n"],["entitydecl","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-entitydecl","(declaration)","
<!ENTITY …> The argument passed to this method is an array of the entity declaration. It can …\n"],["entitydecl","REXML::StreamListener","REXML/StreamListener.html#method-i-entitydecl","(content)","
<!ENTITY …> The argument passed to this method is an array of the entity declaration. It can …\n"],["entitydecl?","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-entitydecl-3F","()","
Due to the wonders of DTDs, an entity declaration can be just about anything. There’s no way to …\n"],["error?","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-error-3F","()",""],["event_type","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-event_type","()",""],["expand","REXML::Parsers::XPathParser","REXML/Parsers/XPathParser.html#method-i-expand","(path_or_parsed)",""],["expand_ref_in","REXML::Validation::State","REXML/Validation/State.html#method-i-expand_ref_in","( arry, ind )",""],["expanded_name","REXML::Document","REXML/Document.html#method-i-expanded_name","()","
Returns an empty string.\n"],["expected","REXML::Validation::Choice","REXML/Validation/Choice.html#method-i-expected","()",""],["expected","REXML::Validation::Interleave","REXML/Validation/Interleave.html#method-i-expected","()",""],["expected","REXML::Validation::OneOrMore","REXML/Validation/OneOrMore.html#method-i-expected","()",""],["expected","REXML::Validation::Optional","REXML/Validation/Optional.html#method-i-expected","()",""],["expected","REXML::Validation::State","REXML/Validation/State.html#method-i-expected","()",""],["expected","REXML::Validation::ZeroOrMore","REXML/Validation/ZeroOrMore.html#method-i-expected","()",""],["false","REXML::Functions","REXML/Functions.html#method-c-false","( )","
UNTESTED\n"],["filter","REXML::QuickPath","REXML/QuickPath.html#method-c-filter","(elements, path)","
Given an array of nodes it filters the array based on the path. The result is that when this method returns, …\n"],["find_first_recursive","REXML::Node","REXML/Node.html#method-i-find_first_recursive","()","
Find (and return) first subnode (recursively) for which the block evaluates to true. Returns
nil
if none …\n"],["first","REXML::QuickPath","REXML/QuickPath.html#method-c-first","(element, path, namespaces=EMPTY_HASH)",""],["first","REXML::XPath","REXML/XPath.html#method-c-first","(element, path=nil, namespaces=nil, variables={}, options={})","Finds and returns the first node that matches the supplied xpath.\n
element — The context element\n
path — The …\n"],["first","REXML::XPathParser","REXML/XPathParser.html#method-i-first","( path_stack, node )","
Performs a depth-first (document order) XPath search, and returns the first match. This is the fastest, …\n"],["floor","REXML::Functions","REXML/Functions.html#method-c-floor","( number )",""],["fully_expanded_name","REXML::Namespace","REXML/Namespace.html#method-i-fully_expanded_name","()","
Fully expand the name, even if the prefix wasn’t specified in the source file.\n"],["function","REXML::QuickPath","REXML/QuickPath.html#method-c-function","( elements, fname, rest )",""],["generate_event","REXML::Validation::State","REXML/Validation/State.html#method-i-generate_event","( event )",""],["get_attribute","REXML::Attributes","REXML/Attributes.html#method-i-get_attribute","( name )","
Returns the REXML::Attribute object for the given
name
:\n\nxml_string = <<-EOT\n <root xmlns:foo="http://foo" ...\n"],["get_attribute_ns","REXML::Attributes","REXML/Attributes.html#method-i-get_attribute_ns","(namespace, name)","Returns the REXML::Attribute object among the attributes that matches the given
namespace
andname
:\n\nxml_string ...\n\n"],["get_elements","REXML::Element","REXML/Element.html#method-i-get_elements","( xpath )","Returns an array of the elements that match the given
xpath
:\n\nxml_string = <<-EOT\n<root>\n <a level='1'> ...\n"],["get_first","REXML::XPathParser","REXML/XPathParser.html#method-i-get_first","(path, nodeset)",""],["get_namespace","REXML::Functions","REXML/Functions.html#method-c-get_namespace","( node_set = nil )","Helper method.\n"],["get_text","REXML::Element","REXML/Element.html#method-i-get_text","(path = nil)","
Returns the first text node child in a specified element, if it exists,
nil
otherwise.\nWith no argument, …\n"],["has_attributes?","REXML::Element","REXML/Element.html#method-i-has_attributes-3F","()","
Returns
true
if the element has attributes,false
otherwise:\n\nd = REXML::Document.new('<root><a attr="val"/><b/></root>') ...\n\n"],["has_elements?","REXML::Element","REXML/Element.html#method-i-has_elements-3F","()","Returns
true
if the element has one or more element children,false
otherwise:\n\nd = REXML::Document.new ...\n\n"],["has_name?","REXML::Light::Node","REXML/Light/Node.html#method-i-has_name-3F","( name, namespace = '' )",""],["has_name?","REXML::Namespace","REXML/Namespace.html#method-i-has_name-3F","( other, ns=nil )","Compares names optionally WITH namespaces\n"],["has_next?","REXML::Parsers::BaseParser","REXML/Parsers/BaseParser.html#method-i-has_next-3F","()","
Returns true if there are more events. Synonymous with !empty?\n"],["has_text?","REXML::Element","REXML/Element.html#method-i-has_text-3F","()","
Returns
true
if the element has one or more text noded,false
otherwise:\n\nd = REXML::Document.new '<a><b/>text<c/></a>' ...\n\n"],["hash","REXML::Attribute","REXML/Attribute.html#method-i-hash","()","Creates (and returns) a hash from both the name and value\n"],["id","REXML::Functions","REXML/Functions.html#method-c-id","( object )","
Since REXML is non-validating, this method is not implemented as it requires a DTD\n"],["ignore_whitespace_nodes","REXML::Element","REXML/Element.html#method-i-ignore_whitespace_nodes","()","
Returns
true
if whitespace nodes are ignored for the element.\nSee Element Context.\n"],["include?","REXML::AttlistDecl","REXML/AttlistDecl.html#method-i-include-3F","(key)","
Whether an attlist declaration includes the given attribute definition\n\n
if attlist_decl.include? "xmlns:foobar"\n"],["indent","REXML::Node","REXML/Node.html#method-i-indent","(to, ind)",""],["indent_text","REXML::Text","REXML/Text.html#method-i-indent_text","(string, level=1, style=\"\\t\", indentfirstline=true)",""],["index","REXML::Elements","REXML/Elements.html#method-i-index","(element)","Returns the 1-based index of the given
element
, if found; otherwise, returns -1:\n\nd = REXML::Document.new(xml_string) ...\n\n"],["index","REXML::Parent","REXML/Parent.html#method-i-index","( child )","Fetches the index of a given child @param child the child to get the index of @return the index of the …\n"],["index_in_parent","REXML::Node","REXML/Node.html#method-i-index_in_parent","()","
Returns the position that
self
holds in its parent’s array, indexed from 1.\n"],["inject","REXML::Elements","REXML/Elements.html#method-i-inject","( xpath=nil, initial=nil )","Calls the block with elements; returns the last block return value.\n
With no argument, iterates over the …\n"],["insert_after","REXML::Parent","REXML/Parent.html#method-i-insert_after","( child1, child2 )","
Inserts an child after another child @param child1 this is either an xpath or an Element. If an Element …\n"],["insert_before","REXML::Parent","REXML/Parent.html#method-i-insert_before","( child1, child2 )","
Inserts an child before another child @param child1 this is either an xpath or an Element. If an Element …\n"],["inspect","REXML::Attribute","REXML/Attribute.html#method-i-inspect","()",""],["inspect","REXML::Element","REXML/Element.html#method-i-inspect","()","
Returns a string representation of the element.\n
For an element with no attributes and no children, shows …\n"],["inspect","REXML::Instruction","REXML/Instruction.html#method-i-inspect","()",""],["inspect","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-inspect","()",""],["inspect","REXML::Text","REXML/Text.html#method-i-inspect","()",""],["inspect","REXML::Validation::Choice","REXML/Validation/Choice.html#method-i-inspect","()",""],["inspect","REXML::Validation::Event","REXML/Validation/Event.html#method-i-inspect","()",""],["inspect","REXML::Validation::Interleave","REXML/Validation/Interleave.html#method-i-inspect","()",""],["inspect","REXML::Validation::Ref","REXML/Validation/Ref.html#method-i-inspect","()",""],["inspect","REXML::Validation::State","REXML/Validation/State.html#method-i-inspect","()",""],["inspect","REXML::XMLDecl","REXML/XMLDecl.html#method-i-inspect","()",""],["instruction","REXML::StreamListener","REXML/StreamListener.html#method-i-instruction","(name, instruction)","
Called when an instruction is encountered. EG: <?xsl sheet=‘foo’?> @p name the instruction …\n"],["instruction?","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-instruction-3F","()","
Content: [ String text ]\n"],["instructions","REXML::Element","REXML/Element.html#method-i-instructions","()","
Returns a frozen array of the REXML::Instruction children of the element:\n\n
xml_string = <<-EOT\n <root> ...\n"],["lang","REXML::Functions","REXML/Functions.html#method-c-lang","( language )","UNTESTED\n"],["last","REXML::Functions","REXML/Functions.html#method-c-last","( )","
Returns the last node of the given list of nodes.\n"],["length","REXML::Attributes","REXML/Attributes.html#method-i-length","()","
Returns the count of attributes:\n\n
xml_string = <<-EOT\n <root xmlns:foo="http://foo" xmlns:bar="http://bar"> ...\n"],["length","REXML::Parent","REXML/Parent.html#method-i-length","()",""],["line","REXML::ParseException","REXML/ParseException.html#method-i-line","()",""],["listen","REXML::Parsers::SAX2Parser","REXML/Parsers/SAX2Parser.html#method-i-listen","( *args, &blok )","Listen arguments:\n
Symbol, Array, Block\n\n
Listen to Symbol events on Array elements\n\n"],["local_name","REXML::Functions","REXML/Functions.html#method-c-local_name","(node_set=nil)",""],["local_name","REXML::Light::Node","REXML/Light/Node.html#method-i-local_name","()",""],["local_name=","REXML::Light::Node","REXML/Light/Node.html#method-i-local_name-3D","( name_str )",""],["match","REXML::IOSource","REXML/IOSource.html#method-i-match","( pattern, cons=false )",""],["match","REXML::QuickPath","REXML/QuickPath.html#method-c-match","(element, path, namespaces=EMPTY_HASH)",""],["match","REXML::Source","REXML/Source.html#method-i-match","(pattern, cons=false)",""],["match","REXML::XPath","REXML/XPath.html#method-c-match","(element, path=nil, namespaces=nil, variables={}, options={})","Returns an array of nodes matching a given XPath.\n"],["match","REXML::XPathParser","REXML/XPathParser.html#method-i-match","(path_stack, nodeset)",""],["matches?","REXML::Entity","REXML/Entity.html#method-c-matches-3F","(string)","
Evaluates whether the given string matches an entity definition, returning true if so, and false otherwise. …\n"],["matches?","REXML::Validation::Choice","REXML/Validation/Choice.html#method-i-matches-3F","( event )",""],["matches?","REXML::Validation::Event","REXML/Validation/Event.html#method-i-matches-3F","( event )",""],["matches?","REXML::Validation::Interleave","REXML/Validation/Interleave.html#method-i-matches-3F","( event )",""],["matches?","REXML::Validation::OneOrMore","REXML/Validation/OneOrMore.html#method-i-matches-3F","( event )",""],["matches?","REXML::Validation::Optional","REXML/Validation/Optional.html#method-i-matches-3F","(event)",""],["matches?","REXML::Validation::Sequence","REXML/Validation/Sequence.html#method-i-matches-3F","(event)",""],["method_missing","REXML::QuickPath","REXML/QuickPath.html#method-c-method_missing","( id, *args )",""],["name","REXML::Document","REXML/Document.html#method-i-name","()",""],["name","REXML::Functions","REXML/Functions.html#method-c-name","( node_set=nil )",""],["name","REXML::Light::Node","REXML/Light/Node.html#method-i-name","()",""],["name","REXML::NotationDecl","REXML/NotationDecl.html#method-i-name","()","
This method retrieves the name of the notation.\n
Method contributed by Henrik Martensson\n"],["name","REXML::QuickPath","REXML/QuickPath.html#method-c-name","()",""],["name=","REXML::Light::Node","REXML/Light/Node.html#method-i-name-3D","( name_str, ns=nil )",""],["name=","REXML::Namespace","REXML/Namespace.html#method-i-name-3D","( name )","
Sets the name and the expanded name\n"],["namespace","REXML::Attribute","REXML/Attribute.html#method-i-namespace","(arg=nil)","
Returns the namespace URL, if defined, or nil otherwise\n\n
e = Element.new("el")\ne.add_namespace("ns", "http://url") ...\n\n"],["namespace","REXML::Element","REXML/Element.html#method-i-namespace","(prefix=nil)","Returns the string namespace URI for the element, possibly deriving from one of its ancestors.\n\n
xml_string ...\n\n"],["namespace","REXML::Light::Node","REXML/Light/Node.html#method-i-namespace","( prefix=prefix() )",""],["namespace=","REXML::Light::Node","REXML/Light/Node.html#method-i-namespace-3D","( namespace )",""],["namespace_context","REXML::Functions","REXML/Functions.html#method-c-namespace_context","()",""],["namespace_context=","REXML::Functions","REXML/Functions.html#method-c-namespace_context-3D","(x)",""],["namespace_uri","REXML::Functions","REXML/Functions.html#method-c-namespace_uri","( node_set=nil )",""],["namespaces","REXML::Attributes","REXML/Attributes.html#method-i-namespaces","()","Returns a hash of name/value pairs for the namespaces:\n\n
xml_string = '<a xmlns="foo" xmlns:x="bar" xmlns:y="twee" ...\n"],["namespaces","REXML::Element","REXML/Element.html#method-i-namespaces","()","Returns a hash of all defined namespaces in the element and its ancestors:\n\n
xml_string = <<-EOT\n <root> ...\n"],["namespaces=","REXML::Parsers::XPathParser","REXML/Parsers/XPathParser.html#method-i-namespaces-3D","( namespaces )",""],["namespaces=","REXML::XPathParser","REXML/XPathParser.html#method-i-namespaces-3D","( namespaces={} )",""],["new","REXML::AttlistDecl","REXML/AttlistDecl.html#method-c-new","(source)","Create an AttlistDecl, pulling the information from a Source. Notice that this isn’t very convenient; …\n"],["new","REXML::Attribute","REXML/Attribute.html#method-c-new","( first, second=nil, parent=nil )","
Constructor. FIXME: The parser doesn’t catch illegal characters in attributes\n
first — Either: an Attribute …\n"],["new","REXML::Attributes","REXML/Attributes.html#method-c-new","(element)","
Creates and returns a new REXML::Attributes object. The element given by argument
element
is stored, …\n"],["new","REXML::CData","REXML/CData.html#method-c-new","( first, whitespace=true, parent=nil )","\nConstructor. CData is data between <![CDATA[ ... ]]>\nExamples\n\n
CData.new( source )\nCData.new( "Here is ...\n"],["new","REXML::Child","REXML/Child.html#method-c-new","( parent = nil )","Constructor. Any inheritors of this class should call super to make sure this method is called.\n
parent … — "],["new","REXML::Comment","REXML/Comment.html#method-c-new","( first, second = nil )","
Constructor. The first argument can be one of three types: @param first If String, the contents of this …\n"],["new","REXML::DTD::ElementDecl","REXML/DTD/ElementDecl.html#method-c-new","(match)","
s*(((([“‘]).*?5)|*)*?)(/)?>/um, true)\n"],["new","REXML::DTD::EntityDecl","REXML/DTD/EntityDecl.html#method-c-new","(src)","
<!ENTITY name SYSTEM “…”> <!ENTITY name “…”>\n"],["new","REXML::DTD::NotationDecl","REXML/DTD/NotationDecl.html#method-c-new","(src)",""],["new","REXML::Declaration","REXML/Declaration.html#method-c-new","(src)",""],["new","REXML::DocType","REXML/DocType.html#method-c-new","( first, parent=nil )","
Constructor\n\n
dt = DocType.new( 'foo', '-//I/Hate/External/IDs' )\n# <!DOCTYPE foo '-//I/Hate/External/IDs'> ...\n\n"],["new","REXML::Document","REXML/Document.html#method-c-new","( source = nil, context = {} )","Returns a new REXML::Document object.\n
When no arguments are given, returns an empty document:\n\n
d = REXML::Document.new ...\n\n"],["new","REXML::Element","REXML/Element.html#method-c-new","( arg = UNDEFINED, parent=nil, context=nil )","Returns a new REXML::Element object.\n
When no arguments are given, returns an element with name
'UNDEFINED'
…\n"],["new","REXML::ElementDecl","REXML/ElementDecl.html#method-c-new","( src )",""],["new","REXML::Elements","REXML/Elements.html#method-c-new","(parent)","Returns a new Elements object with the given
parent
. Does not assignparent.elements = self
:\n\nd = REXML::Document.new(xml_string) ...\n\n"],["new","REXML::Entity","REXML/Entity.html#method-c-new","(stream, value=nil, parent=nil, reference=false)","Create a new entity. Simple entities can be constructed by passing a name, value to the constructor; …\n"],["new","REXML::ExternalEntity","REXML/ExternalEntity.html#method-c-new","( src )",""],["new","REXML::Formatters::Default","REXML/Formatters/Default.html#method-c-new","( ie_hack=false )","
Prints out the XML document with no formatting – except if ie_hack is set.\n
ie_hack — If set to true, then …\n\n"],["new","REXML::Formatters::Pretty","REXML/Formatters/Pretty.html#method-c-new","( indentation=2, ie_hack=false )","
Create a new pretty printer.\n
output — An object implementing ‘<<(String)’, to which the output …\n"],["new","REXML::Formatters::Transitive","REXML/Formatters/Transitive.html#method-c-new","( indentation=2, ie_hack=false )",""],["new","REXML::IOSource","REXML/IOSource.html#method-c-new","(arg, block_size=500, encoding=nil)","
block_size has been deprecated\n"],["new","REXML::Instruction","REXML/Instruction.html#method-c-new","(target, content=nil)","
Constructs a new Instruction @param target can be one of a number of things. If String, then the target …\n"],["new","REXML::Light::Node","REXML/Light/Node.html#method-c-new","(node=nil)","
Create a new element.\n"],["new","REXML::NotationDecl","REXML/NotationDecl.html#method-c-new","(name, middle, pub, sys)",""],["new","REXML::Output","REXML/Output.html#method-c-new","(real_IO, encd=\"iso-8859-1\")",""],["new","REXML::Parent","REXML/Parent.html#method-c-new","(parent=nil)","
Constructor @param parent if supplied, will be set as the parent of this object\n"],["new","REXML::ParseException","REXML/ParseException.html#method-c-new","( message, source=nil, parser=nil, exception=nil )",""],["new","REXML::Parsers::BaseParser","REXML/Parsers/BaseParser.html#method-c-new","( source )",""],["new","REXML::Parsers::LightParser","REXML/Parsers/LightParser.html#method-c-new","(stream)",""],["new","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-c-new","(arg)","
The type of this event. Will be one of :tag_start, :tag_end, :text, :processing_instruction, :comment, …\n"],["new","REXML::Parsers::PullParser","REXML/Parsers/PullParser.html#method-c-new","(stream)",""],["new","REXML::Parsers::SAX2Parser","REXML/Parsers/SAX2Parser.html#method-c-new","(source)",""],["new","REXML::Parsers::StreamParser","REXML/Parsers/StreamParser.html#method-c-new","(source, listener)",""],["new","REXML::Parsers::TreeParser","REXML/Parsers/TreeParser.html#method-c-new","( source, build_context = Document.new )",""],["new","REXML::Parsers::UltraLightParser","REXML/Parsers/UltraLightParser.html#method-c-new","(stream)",""],["new","REXML::ReferenceWriter","REXML/ReferenceWriter.html#method-c-new","(id_type, public_id_literal, system_literal, context=nil)",""],["new","REXML::Source","REXML/Source.html#method-c-new","(arg, encoding=nil)","
Constructor @param arg must be a String, and should be a valid XML document @param encoding if non-null, …\n"],["new","REXML::Text","REXML/Text.html#method-c-new","(arg, respect_whitespace=false, parent=nil, raw=nil, entity_filter=nil, illegal=NEEDS_A_SECOND_CHECK )","
Constructor
arg
if a String, the content is set to the String. If a Text, the object is shallowly cloned. …\n"],["new","REXML::UndefinedNamespaceException","REXML/UndefinedNamespaceException.html#method-c-new","( prefix, source, parser )",""],["new","REXML::Validation::Choice","REXML/Validation/Choice.html#method-c-new","(context)",""],["new","REXML::Validation::Event","REXML/Validation/Event.html#method-c-new","(event_type, event_arg=nil )",""],["new","REXML::Validation::Interleave","REXML/Validation/Interleave.html#method-c-new","(context)",""],["new","REXML::Validation::OneOrMore","REXML/Validation/OneOrMore.html#method-c-new","(context)",""],["new","REXML::Validation::Ref","REXML/Validation/Ref.html#method-c-new","(value)",""],["new","REXML::Validation::RelaxNG","REXML/Validation/RelaxNG.html#method-c-new","(source)","FIXME: Namespaces\n"],["new","REXML::Validation::State","REXML/Validation/State.html#method-c-new","( context )",""],["new","REXML::Validation::ValidationException","REXML/Validation/ValidationException.html#method-c-new","(msg)",""],["new","REXML::XMLDecl","REXML/XMLDecl.html#method-c-new","(version=DEFAULT_VERSION, encoding=nil, standalone=nil)",""],["new","REXML::XPathNode","REXML/XPathNode.html#method-c-new","(node, context=nil)",""],["new","REXML::XPathParser","REXML/XPathParser.html#method-c-new","(strict: false)",""],["next","REXML::Validation::Choice","REXML/Validation/Choice.html#method-i-next","( event )",""],["next","REXML::Validation::Interleave","REXML/Validation/Interleave.html#method-i-next","( event )",""],["next","REXML::Validation::OneOrMore","REXML/Validation/OneOrMore.html#method-i-next","( event )",""],["next","REXML::Validation::Optional","REXML/Validation/Optional.html#method-i-next","( event )",""],["next","REXML::Validation::State","REXML/Validation/State.html#method-i-next","( event )",""],["next","REXML::Validation::ZeroOrMore","REXML/Validation/ZeroOrMore.html#method-i-next","( event )",""],["next_current","REXML::Validation::Interleave","REXML/Validation/Interleave.html#method-i-next_current","( event )",""],["next_element","REXML::Element","REXML/Element.html#method-i-next_element","()","
Returns the next sibling that is an element if it exists,
niL
otherwise:\n\nd = REXML::Document.new '<a><b/>text<c/></a>' ...\n\n"],["next_sibling=","REXML::Child","REXML/Child.html#method-i-next_sibling-3D","( other )","Sets the next sibling of this child. This can be used to insert a child after some other child.\n\n
a = Element.new("a") ...\n\n"],["next_sibling_node","REXML::Node","REXML/Node.html#method-i-next_sibling_node","()","@return the next sibling (nil if unset)\n"],["node_type","REXML::AttlistDecl","REXML/AttlistDecl.html#method-i-node_type","()",""],["node_type","REXML::Attribute","REXML/Attribute.html#method-i-node_type","()",""],["node_type","REXML::Comment","REXML/Comment.html#method-i-node_type","()",""],["node_type","REXML::DocType","REXML/DocType.html#method-i-node_type","()",""],["node_type","REXML::Document","REXML/Document.html#method-i-node_type","()","
Returns the symbol
:document
.\n"],["node_type","REXML::Element","REXML/Element.html#method-i-node_type","()","Returns symbol
:element
:\n\nd = REXML::Document.new('<a/>')\na = d.root # => <a/>\na.node_type # => :element\n\n"],["node_type","REXML::Instruction","REXML/Instruction.html#method-i-node_type","()",""],["node_type","REXML::Light::Node","REXML/Light/Node.html#method-i-node_type","()",""],["node_type","REXML::Text","REXML/Text.html#method-i-node_type","()",""],["node_type","REXML::XMLDecl","REXML/XMLDecl.html#method-i-node_type","()",""],["normalize","REXML::Parsers::BaseParser","REXML/Parsers/BaseParser.html#method-i-normalize","( input, entities=nil, entity_filter=nil )","Escapes all possible entities\n"],["normalize_space","REXML::Functions","REXML/Functions.html#method-c-normalize_space","( string=nil )",""],["normalized","REXML::Entity","REXML/Entity.html#method-i-normalized","()","
Returns the value of this entity unprocessed – raw. This is the normalized value; that is, with all …\n"],["normalized=","REXML::Attribute","REXML/Attribute.html#method-i-normalized-3D","(new_normalized)","
The normalized value of this attribute. That is, the attribute with entities intact.\n"],["not","REXML::Functions","REXML/Functions.html#method-c-not","( object )","
UNTESTED\n"],["notation","REXML::DocType","REXML/DocType.html#method-i-notation","(name)","
Retrieves a named notation. Only notations declared in the internal DTD subset can be retrieved.\n
Method …\n"],["notationdecl","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-notationdecl","(name, public_or_system, public_id, system_id)","
<!NOTATION …>\n"],["notationdecl","REXML::StreamListener","REXML/StreamListener.html#method-i-notationdecl","(content)","
<!NOTATION …>\n"],["notationdecl?","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-notationdecl-3F","()","
Content: [ String text ]\n"],["notations","REXML::DocType","REXML/DocType.html#method-i-notations","()","
This method returns a list of notations that have been declared in the internal DTD subset. Notations …\n"],["nowrite","REXML::XMLDecl","REXML/XMLDecl.html#method-i-nowrite","()",""],["number","REXML::Functions","REXML/Functions.html#method-c-number","(object=@@context[:node])","
a string that consists of optional whitespace followed by an optional minus sign followed by a Number …\n"],["old_enc=","REXML::XMLDecl","REXML/XMLDecl.html#method-i-old_enc-3D","( enc )",""],["parent","REXML::Elements","REXML/Elements.html#method-i-parent","()","
Returns the parent element cited in creating the Elements object. This element is also the default starting …\n"],["parent","REXML::Light::Node","REXML/Light/Node.html#method-i-parent","()",""],["parent=","REXML::Child","REXML/Child.html#method-i-parent-3D","( other )","
Sets the parent of this child to the supplied argument.\n
other — Must be a Parent object. If this object …\n"],["parent=","REXML::Light::Node","REXML/Light/Node.html#method-i-parent-3D","( node )",""],["parent=","REXML::Text","REXML/Text.html#method-i-parent-3D","(parent)",""],["parent?","REXML::Node","REXML/Node.html#method-i-parent-3F","()",""],["parent?","REXML::Parent","REXML/Parent.html#method-i-parent-3F","()",""],["parse","REXML::DTD::Parser","REXML/DTD/Parser.html#method-c-parse","( input )",""],["parse","REXML::Parsers::LightParser","REXML/Parsers/LightParser.html#method-i-parse","()",""],["parse","REXML::Parsers::SAX2Parser","REXML/Parsers/SAX2Parser.html#method-i-parse","()",""],["parse","REXML::Parsers::StreamParser","REXML/Parsers/StreamParser.html#method-i-parse","()",""],["parse","REXML::Parsers::TreeParser","REXML/Parsers/TreeParser.html#method-i-parse","()",""],["parse","REXML::Parsers::UltraLightParser","REXML/Parsers/UltraLightParser.html#method-i-parse","()",""],["parse","REXML::Parsers::XPathParser","REXML/Parsers/XPathParser.html#method-i-parse","(path)",""],["parse","REXML::XPathParser","REXML/XPathParser.html#method-i-parse","(path, nodeset)",""],["parse_args","REXML::QuickPath","REXML/QuickPath.html#method-c-parse_args","( element, string )",""],["parse_helper","REXML::DTD::Parser","REXML/DTD/Parser.html#method-c-parse_helper","( input )","
Takes a String and parses it out\n"],["parse_source","REXML::DTD::EntityDecl","REXML/DTD/EntityDecl.html#method-c-parse_source","(source, listener)",""],["parse_source","REXML::DTD::NotationDecl","REXML/DTD/NotationDecl.html#method-c-parse_source","(source, listener)",""],["parse_stream","REXML::Document","REXML/Document.html#method-c-parse_stream","( source, listener )",""],["peek","REXML::Parsers::BaseParser","REXML/Parsers/BaseParser.html#method-i-peek","(depth=0)","
Peek at the
depth
event in the stack. The first element on the stack is at depth 0. Ifdepth
is -1, …\n"],["peek","REXML::Parsers::PullParser","REXML/Parsers/PullParser.html#method-i-peek","(depth=0)",""],["position","REXML::Functions","REXML/Functions.html#method-c-position","( )",""],["position","REXML::ParseException","REXML/ParseException.html#method-i-position","()",""],["position","REXML::Parsers::BaseParser","REXML/Parsers/BaseParser.html#method-i-position","()",""],["position","REXML::Source","REXML/Source.html#method-i-position","()",""],["position","REXML::XPathNode","REXML/XPathNode.html#method-i-position","()",""],["position=","REXML::Source","REXML/Source.html#method-i-position-3D","(pos)",""],["preciate_to_string","REXML::Parsers::XPathParser","REXML/Parsers/XPathParser.html#method-i-preciate_to_string","(parsed, &block)","For backward compatibility\n"],["predicate","REXML::Parsers::XPathParser","REXML/Parsers/XPathParser.html#method-i-predicate","(path)",""],["predicate","REXML::QuickPath","REXML/QuickPath.html#method-c-predicate","( elements, path )","
A predicate filters a node-set with respect to an axis to produce a new node-set. For each node in the …\n"],["predicate","REXML::XPathParser","REXML/XPathParser.html#method-i-predicate","(path, nodeset)",""],["predicate_to_path","REXML::Parsers::XPathParser","REXML/Parsers/XPathParser.html#method-i-predicate_to_path","(parsed, &block)",""],["prefix","REXML::Attribute","REXML/Attribute.html#method-i-prefix","()","
Returns the namespace of the attribute.\n\n
e = Element.new( "elns:myelement" )\ne.add_attribute( "nsa:a", ...\n"],["prefix","REXML::Light::Node","REXML/Light/Node.html#method-i-prefix","( namespace=nil )",""],["prefixes","REXML::Attributes","REXML/Attributes.html#method-i-prefixes","()","Returns an array of prefix strings in the attributes. The array does not include the default namespace …\n"],["prefixes","REXML::Element","REXML/Element.html#method-i-prefixes","()","
Returns an array of the string prefixes (names) of all defined namespaces in the element and its ancestors: …\n"],["previous=","REXML::Validation::State","REXML/Validation/State.html#method-i-previous-3D","( previous )",""],["previous_element","REXML::Element","REXML/Element.html#method-i-previous_element","()","
Returns the previous sibling that is an element if it exists,
niL
otherwise:\n\nd = REXML::Document.new '<a><b/>text<c/></a>' ...\n\n"],["previous_sibling=","REXML::Child","REXML/Child.html#method-i-previous_sibling-3D","(other)","Sets the previous sibling of this child. This can be used to insert a child before some other child. …\n"],["previous_sibling_node","REXML::Node","REXML/Node.html#method-i-previous_sibling_node","()","
@return the previous sibling (nil if unset)\n"],["processing_instruction","REXML::Functions","REXML/Functions.html#method-c-processing_instruction","( node )",""],["processing_instruction","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-processing_instruction","(target, data)",""],["progress","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-progress","(position)",""],["public","REXML::DocType","REXML/DocType.html#method-i-public","()","
This method retrieves the public identifier identifying the document’s DTD.\n
Method contributed by …\n"],["pull","REXML::Parsers::BaseParser","REXML/Parsers/BaseParser.html#method-i-pull","()","
Returns the next event. This is a
PullEvent
object.\n"],["pull","REXML::Parsers::PullParser","REXML/Parsers/PullParser.html#method-i-pull","()",""],["push","REXML::Parent","REXML/Parent.html#method-i-push","( object )",""],["raw","REXML::Element","REXML/Element.html#method-i-raw","()","Returns
true
if raw mode is set for the element.\nSee Element Context.\n
The evaluation is tested against …\n"],["read","REXML::IOSource","REXML/IOSource.html#method-i-read","(term = nil, min_bytes = 1)",""],["read","REXML::Source","REXML/Source.html#method-i-read","(term = nil)",""],["read_until","REXML::IOSource","REXML/IOSource.html#method-i-read_until","(term)",""],["read_until","REXML::Source","REXML/Source.html#method-i-read_until","(term)",""],["receive","REXML::Validation::RelaxNG","REXML/Validation/RelaxNG.html#method-i-receive","(event)",""],["record_entity_expansion","REXML::Document","REXML/Document.html#method-i-record_entity_expansion","()",""],["remove","REXML::Attribute","REXML/Attribute.html#method-i-remove","()","
Removes this Attribute from the tree, and returns true if successful\n
This method is usually not called …\n"],["remove","REXML::Child","REXML/Child.html#method-i-remove","()","
Removes this child from the parent.\n
Returns — self\n\n"],["replace_child","REXML::Parent","REXML/Parent.html#method-i-replace_child","( to_replace, replacement )","
Replaces one child with another, making sure the nodelist is correct @param to_replace the child to replace …\n"],["replace_with","REXML::Child","REXML/Child.html#method-i-replace_with","( child )","
Replaces this object with another object. Basically, calls Parent.replace_child\n
Returns — self\n\n"],["reset","REXML::Validation::Choice","REXML/Validation/Choice.html#method-i-reset","()",""],["reset","REXML::Validation::Interleave","REXML/Validation/Interleave.html#method-i-reset","()",""],["reset","REXML::Validation::OneOrMore","REXML/Validation/OneOrMore.html#method-i-reset","()",""],["reset","REXML::Validation::State","REXML/Validation/State.html#method-i-reset","()",""],["reset","REXML::Validation::Validator","REXML/Validation/Validator.html#method-i-reset","()",""],["rewind","REXML::Parsers::LightParser","REXML/Parsers/LightParser.html#method-i-rewind","()",""],["rewind","REXML::Parsers::UltraLightParser","REXML/Parsers/UltraLightParser.html#method-i-rewind","()",""],["root","REXML::Document","REXML/Document.html#method-i-root","()","
Returns the root element of the document, if it exists, otherwise
nil
:\n\nd = REXML::Document.new('<root></root>') ...\n\n"],["root","REXML::Element","REXML/Element.html#method-i-root","()","Returns the most distant element (not document) ancestor of the element:\n\n
d = REXML::Document.new('<a><b><c/></b></a>') ...\n\n"],["root","REXML::Light::Node","REXML/Light/Node.html#method-i-root","()",""],["root_node","REXML::Element","REXML/Element.html#method-i-root_node","()","Returns the most distant ancestor of
self
.\nWhen the element is part of a document, returns the root node …\n"],["round","REXML::Functions","REXML/Functions.html#method-c-round","( number )",""],["scan","REXML::StringScannerCheckScanString","REXML/StringScannerCheckScanString.html#method-i-scan","(pattern)",""],["send","REXML::Functions","REXML/Functions.html#method-c-send","(name, *args)",""],["single?","REXML::Validation::Event","REXML/Validation/Event.html#method-i-single-3F","()",""],["singleton_method_added","REXML::Functions","REXML/Functions.html#method-c-singleton_method_added","(name)",""],["size","REXML::Attributes","REXML/Attributes.html#method-i-size","()",""],["size","REXML::Elements","REXML/Elements.html#method-i-size","()","
Returns the count of Element children:\n\n
d = REXML::Document.new '<a>sean<b/>elliott<b/>russell<b/></a>' ...\n\n"],["size","REXML::Light::Node","REXML/Light/Node.html#method-i-size","()",""],["size","REXML::Parent","REXML/Parent.html#method-i-size","()","@return the number of children of this parent\n"],["source","REXML::Parsers::SAX2Parser","REXML/Parsers/SAX2Parser.html#method-i-source","()",""],["stand_alone?","REXML::Document","REXML/Document.html#method-i-stand_alone-3F","()","
Returns the XMLDecl standalone value of the document as a string, if it has been set, otherwise the default …\n"],["start_document","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-start_document","()",""],["start_element","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-start_element","(uri, localname, qname, attributes)",""],["start_element?","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-start_element-3F","()","
Content: [ String tag_name, Hash attributes ]\n"],["start_prefix_mapping","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-start_prefix_mapping","(prefix, uri)",""],["starts_with","REXML::Functions","REXML/Functions.html#method-c-starts_with","( string, test )","
Fixed by Mike Stok\n"],["stream=","REXML::Parsers::BaseParser","REXML/Parsers/BaseParser.html#method-i-stream-3D","( source )",""],["string","REXML::Functions","REXML/Functions.html#method-c-string","( object=@@context[:node] )","
A node-set is converted to a string by returning the string-value of the node in the node-set that is …\n"],["string_length","REXML::Functions","REXML/Functions.html#method-c-string_length","( string )","
UNTESTED\n"],["string_value","REXML::Functions","REXML/Functions.html#method-c-string_value","( o )","
A node-set is converted to a string by returning the concatenation of the string-value of each of the …\n"],["substring","REXML::Functions","REXML/Functions.html#method-c-substring","( string, start, length=nil )","
Take equal portions of Mike Stok and Sean Russell; mix vigorously, and pour into a tall, chilled glass. …\n"],["substring_after","REXML::Functions","REXML/Functions.html#method-c-substring_after","( string, test )","
Kouhei fixed this too\n"],["substring_before","REXML::Functions","REXML/Functions.html#method-c-substring_before","( string, test )","
Kouhei fixed this\n"],["sum","REXML::Functions","REXML/Functions.html#method-c-sum","( nodes )",""],["system","REXML::DocType","REXML/DocType.html#method-i-system","()","
This method retrieves the system identifier identifying the document’s DTD\n
Method contributed by …\n"],["tag_end","REXML::StreamListener","REXML/StreamListener.html#method-i-tag_end","(name)","
Called when the end tag is reached. In the case of <tag/>, tag_end will be called immediately …\n"],["tag_start","REXML::StreamListener","REXML/StreamListener.html#method-i-tag_start","(name, attrs)","
Called when a tag is encountered. @p name the tag name @p attrs an array of arrays of attribute/value …\n"],["tally","REXML::Parsers::EnumerableTally","REXML/Parsers/EnumerableTally.html#method-i-tally","()",""],["text","REXML::Element","REXML/Element.html#method-i-text","( path = nil )","
Returns the text string from the first text node child in a specified element, if it exists,
nil
otherwise. …\n"],["text","REXML::Functions","REXML/Functions.html#method-c-text","( )",""],["text","REXML::StreamListener","REXML/StreamListener.html#method-i-text","(text)","Called when text is encountered in the document @p text the text content.\n"],["text=","REXML::Element","REXML/Element.html#method-i-text-3D","( text )","
Adds, replaces, or removes the first text node child in the element.\n
With string argument
string
, creates …\n"],["text=","REXML::Light::Node","REXML/Light/Node.html#method-i-text-3D","( foo )",""],["text?","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-text-3F","()","Content: [ String raw_text, String unnormalized_text ]\n"],["texts","REXML::Element","REXML/Element.html#method-i-texts","()","
Returns a frozen array of the REXML::Text children of the element:\n\n
xml_string = '<root><a/>text<b/>more<c/></root>' ...\n\n"],["to_a","REXML::Attributes","REXML/Attributes.html#method-i-to_a","()","Returns an array of REXML::Attribute objects representing the attributes:\n\n
xml_string = <<-EOT\n <root ...\n"],["to_a","REXML::Elements","REXML/Elements.html#method-i-to_a","( xpath=nil )","Returns an array of element children (not including non-element children).\n
With no argument, returns an …\n"],["to_a","REXML::Parent","REXML/Parent.html#method-i-to_a","()",""],["to_s","REXML::Attribute","REXML/Attribute.html#method-i-to_s","()","
Returns the attribute value, with entities replaced\n"],["to_s","REXML::CData","REXML/CData.html#method-i-to_s","()","
Returns the content of this CData object\n
Examples\n\n
c = CData.new( "Some text" )\nc.to_s # -> "Some ...\n\n"],["to_s","REXML::DTD::EntityDecl","REXML/DTD/EntityDecl.html#method-i-to_s","()",""],["to_s","REXML::DTD::NotationDecl","REXML/DTD/NotationDecl.html#method-i-to_s","()",""],["to_s","REXML::Declaration","REXML/Declaration.html#method-i-to_s","()",""],["to_s","REXML::Entity","REXML/Entity.html#method-i-to_s","()","Returns this entity as a string. See write().\n"],["to_s","REXML::ExternalEntity","REXML/ExternalEntity.html#method-i-to_s","()",""],["to_s","REXML::Light::Node","REXML/Light/Node.html#method-i-to_s","()",""],["to_s","REXML::Node","REXML/Node.html#method-i-to_s","(indent=nil)","
indent — DEPRECATED This parameter is now ignored. See the formatters in the REXML::Formatters package …\n\n"],["to_s","REXML::NotationDecl","REXML/NotationDecl.html#method-i-to_s","()",""],["to_s","REXML::Output","REXML/Output.html#method-i-to_s","()",""],["to_s","REXML::ParseException","REXML/ParseException.html#method-i-to_s","()",""],["to_s","REXML::Text","REXML/Text.html#method-i-to_s","()","
Returns the string value of this text node. This string is always escaped, meaning that it is a valid …\n"],["to_s","REXML::Validation::Event","REXML/Validation/Event.html#method-i-to_s","()",""],["to_s","REXML::Validation::Ref","REXML/Validation/Ref.html#method-i-to_s","()",""],["to_s","REXML::Validation::State","REXML/Validation/State.html#method-i-to_s","()",""],["to_string","REXML::Attribute","REXML/Attribute.html#method-i-to_string","()","
Returns this attribute out as XML source, expanding the name\n\n
a = Attribute.new( "x", "y" )\na.to_string ...\n\n"],["translate","REXML::Functions","REXML/Functions.html#method-c-translate","( string, tr1, tr2 )","This is entirely Mike Stok’s beast\n"],["true","REXML::Functions","REXML/Functions.html#method-c-true","( )","
UNTESTED\n"],["unnormalize","REXML::Parsers::BaseParser","REXML/Parsers/BaseParser.html#method-i-unnormalize","( string, entities=nil, filter=nil )","
Unescapes all possible entities\n"],["unnormalized","REXML::Entity","REXML/Entity.html#method-i-unnormalized","()","
Evaluates to the unnormalized value of this entity; that is, replacing &ent; entities.\n"],["unshift","REXML::Parent","REXML/Parent.html#method-i-unshift","( object )",""],["unshift","REXML::Parsers::BaseParser","REXML/Parsers/BaseParser.html#method-i-unshift","(token)","
Push an event back on the head of the stream. This method has (theoretically) infinite depth.\n"],["unshift","REXML::Parsers::PullParser","REXML/Parsers/PullParser.html#method-i-unshift","(token)",""],["validate","REXML::Validation::Validator","REXML/Validation/Validator.html#method-i-validate","( event )",""],["value","REXML::Attribute","REXML/Attribute.html#method-i-value","()","
Returns the UNNORMALIZED value of this attribute. That is, entities have been expanded to their values …\n"],["value","REXML::CData","REXML/CData.html#method-i-value","()",""],["value","REXML::Text","REXML/Text.html#method-i-value","()","
Returns the string value of this text. This is the text without entities, as it might be used programmatically, …\n"],["value=","REXML::Text","REXML/Text.html#method-i-value-3D","( val )","
Sets the contents of this text node. This expects the text to be unnormalized. It returns self.\n\n
e = ...\n"],["variables","REXML::Functions","REXML/Functions.html#method-c-variables","()",""],["variables=","REXML::Functions","REXML/Functions.html#method-c-variables-3D","(x)",""],["variables=","REXML::XPathParser","REXML/XPathParser.html#method-i-variables-3D","( vars={} )",""],["version","REXML::Document","REXML/Document.html#method-i-version","()","Returns the XMLDecl version of this document as a string, if it has been set, otherwise the default version: …\n"],["whitespace","REXML::Element","REXML/Element.html#method-i-whitespace","()","
Returns
true
if whitespace is respected for this element,false
otherwise.\nSee Element Context.\n
The evaluation …\n"],["wrap","REXML::Text","REXML/Text.html#method-i-wrap","(string, width, addnewline=false)",""],["write","REXML::AttlistDecl","REXML/AttlistDecl.html#method-i-write","(out, indent=-1)","
Write out exactly what we got in.\n"],["write","REXML::Attribute","REXML/Attribute.html#method-i-write","( output, indent=-1 )","
Writes this attribute (EG, puts ‘key=“value”’ to the output)\n"],["write","REXML::CData","REXML/CData.html#method-i-write","( output=$stdout, indent=-1, transitive=false, ie_hack=false )","
DEPRECATED\n
See the rexml/formatters package\n
Generates XML output of this object\n"],["write","REXML::Comment","REXML/Comment.html#method-i-write","( output, indent=-1, transitive=false, ie_hack=false )","
DEPRECATED\n
See REXML::Formatters\n
output — Where to write the string\n"],["write","REXML::DTD::EntityDecl","REXML/DTD/EntityDecl.html#method-i-write","( output, indent )",""],["write","REXML::DTD::NotationDecl","REXML/DTD/NotationDecl.html#method-i-write","( output, indent )",""],["write","REXML::Declaration","REXML/Declaration.html#method-i-write","( output, indent )","
DEPRECATED\n
See REXML::Formatters\n"],["write","REXML::DocType","REXML/DocType.html#method-i-write","( output, indent=0, transitive=false, ie_hack=false )","
output — Where to write the string\n
indent — An integer. If -1, no indentation will be used; otherwise, the …\n"],["write","REXML::Document","REXML/Document.html#method-i-write","(*arguments)","
Write the XML tree out, optionally with indent. This writes out the entire XML document, including …\n"],["write","REXML::Element","REXML/Element.html#method-i-write","(output=$stdout, indent=-1, transitive=false, ie_hack=false)","
DEPRECATED\n
See REXML::Formatters\n
Writes out this element, and recursively, all children.\n"],["write","REXML::Entity","REXML/Entity.html#method-i-write","(out, indent=-1)","
Write out a fully formed, correct entity definition (assuming the Entity object itself is valid.)\n
out … — "],["write","REXML::ExternalEntity","REXML/ExternalEntity.html#method-i-write","( output, indent )",""],["write","REXML::Formatters::Default","REXML/Formatters/Default.html#method-i-write","( node, output )","
Writes the node to some output.\n
node — The node to write\n
output — A class implementing
<<
. …\n"],["write","REXML::Instruction","REXML/Instruction.html#method-i-write","(writer, indent=-1, transitive=false, ie_hack=false)","DEPRECATED\n
See the rexml/formatters package\n"],["write","REXML::NotationDecl","REXML/NotationDecl.html#method-i-write","( output, indent=-1 )",""],["write","REXML::ReferenceWriter","REXML/ReferenceWriter.html#method-i-write","(output)",""],["write","REXML::Text","REXML/Text.html#method-i-write","( writer, indent=-1, transitive=false, ie_hack=false )","
DEPRECATED\n
See REXML::Formatters\n"],["write","REXML::XMLDecl","REXML/XMLDecl.html#method-i-write","(writer, indent=-1, transitive=false, ie_hack=false)","
indent — Ignored. There must be no whitespace before an XML declaration\n
transitive — Ignored\n
ie_hack — Ignored …\n"],["write_cdata","REXML::Formatters::Default","REXML/Formatters/Default.html#method-i-write_cdata","( node, output )",""],["write_cdata","REXML::Formatters::Pretty","REXML/Formatters/Pretty.html#method-i-write_cdata","( node, output)",""],["write_comment","REXML::Formatters::Default","REXML/Formatters/Default.html#method-i-write_comment","( node, output )",""],["write_comment","REXML::Formatters::Pretty","REXML/Formatters/Pretty.html#method-i-write_comment","( node, output)",""],["write_document","REXML::Formatters::Default","REXML/Formatters/Default.html#method-i-write_document","( node, output )",""],["write_document","REXML::Formatters::Pretty","REXML/Formatters/Pretty.html#method-i-write_document","( node, output )",""],["write_element","REXML::Formatters::Default","REXML/Formatters/Default.html#method-i-write_element","( node, output )",""],["write_element","REXML::Formatters::Pretty","REXML/Formatters/Pretty.html#method-i-write_element","(node, output)",""],["write_element","REXML::Formatters::Transitive","REXML/Formatters/Transitive.html#method-i-write_element","( node, output )",""],["write_instruction","REXML::Formatters::Default","REXML/Formatters/Default.html#method-i-write_instruction","( node, output )",""],["write_text","REXML::Formatters::Default","REXML/Formatters/Default.html#method-i-write_text","( node, output )",""],["write_text","REXML::Formatters::Pretty","REXML/Formatters/Pretty.html#method-i-write_text","( node, output )",""],["write_text","REXML::Formatters::Transitive","REXML/Formatters/Transitive.html#method-i-write_text","( node, output )",""],["write_with_substitution","REXML::Text","REXML/Text.html#method-i-write_with_substitution","(out, input)","
Writes out text, substituting special characters beforehand.
out
A String, IO, or any other object supporting …\n"],["xml_decl","REXML::Document","REXML/Document.html#method-i-xml_decl","()","Returns the XMLDecl object for the document, if it exists, otherwise the default XMLDecl object:\n\n
d = REXML::Document.new('<?xml ...\n"],["xmldecl","REXML::SAX2Listener","REXML/SAX2Listener.html#method-i-xmldecl","(version, encoding, standalone)","Called when an XML PI is encountered in the document. EG: <?xml version=“1.0” encoding=“utf”?> …\n"],["xmldecl","REXML::StreamListener","REXML/StreamListener.html#method-i-xmldecl","(version, encoding, standalone)","
Called when an XML PI is encountered in the document. EG: <?xml version=“1.0” encoding=“utf”?> …\n"],["xmldecl","REXML::XMLDecl","REXML/XMLDecl.html#method-i-xmldecl","(version, encoding, standalone)",""],["xmldecl?","REXML::Parsers::PullEvent","REXML/Parsers/PullEvent.html#method-i-xmldecl-3F","()","
Content: [ String version, String encoding, String standalone ]\n"],["xpath","REXML::Attribute","REXML/Attribute.html#method-i-xpath","()",""],["xpath","REXML::Element","REXML/Element.html#method-i-xpath","()","
Returns the string xpath to the element relative to the most distant parent:\n\n
d = REXML::Document.new('<a><b><c/></b></a>') ...\n\n"],["xpath","REXML::Text","REXML/Text.html#method-i-xpath","()","FIXME This probably won’t work properly\n"],["LICENSE","","LICENSE_txt.html","","
Copyright © 1993-2013 Yukihiro Matsumoto. All rights reserved.\n
Redistribution and use in source and …\n"],["NEWS","","NEWS_md.html","","
News\n
3.3.6 - 2024-08-22 {#version-3-3-6}\n
Improvements\n"],["README","","README_md.html","","
REXML\n
REXML was inspired by the Electric XML library for Java, which features an easy-to-use API, small …\n"],["context","","doc/rexml/context_rdoc.html","","
Element Context\n
Notes:\n
All code on this page presupposes that the following has been executed:\n"],["child","","doc/rexml/tasks/rdoc/child_rdoc.html","","
Class Child\n
Class Child includes module Node; see Tasks for Node.\n
Tasks on this page:\n"],["document","","doc/rexml/tasks/rdoc/document_rdoc.html","","
Class Document\n
Class Document has methods from its superclasses and included modules; see:\n
Tasks for Element …\n"],["element","","doc/rexml/tasks/rdoc/element_rdoc.html","","
Class Element\n
Class Element has methods from its superclasses and included modules; see:\n
Tasks for Parent …\n"],["node","","doc/rexml/tasks/rdoc/node_rdoc.html","","
Module Node\n
Tasks on this page:\n
Siblings\n"],["parent","","doc/rexml/tasks/rdoc/parent_rdoc.html","","
Class Parent\n
Class Parent has methods from its superclasses and included modules; see:\n
Tasks for Child …\n"],["child_toc","","doc/rexml/tasks/tocs/child_toc_rdoc.html","","
Tasks on this page:\n
Relationships\n
Task: Set the Parent\n"],["document_toc","","doc/rexml/tasks/tocs/document_toc_rdoc.html","","
Tasks on this page:\n
New Document\n
Task: Create an Empty Document\n"],["element_toc","","doc/rexml/tasks/tocs/element_toc_rdoc.html","","
Tasks on this page:\n
New Element\n
Task: Create a Default Element\n"],["master_toc","","doc/rexml/tasks/tocs/master_toc_rdoc.html","","
Tasks\n
Child\n
Relationships\n"],["node_toc","","doc/rexml/tasks/tocs/node_toc_rdoc.html","","
Tasks on this page:\n
Siblings\n
Task: Find Previous Sibling\n"],["parent_toc","","doc/rexml/tasks/tocs/parent_toc_rdoc.html","","
Tasks on this page:\n
Queries\n
Task: Get the Count of Children\n"],["tutorial","","doc/rexml/tutorial_rdoc.html","","
REXML Tutorial\n
Why REXML?\n
Ruby’s REXML library is part of the Ruby distribution, so using it requires …\n"]]}} \ No newline at end of file diff --git a/js/search_index.js.gz b/js/search_index.js.gz index dee205d0..9fc82c22 100644 Binary files a/js/search_index.js.gz and b/js/search_index.js.gz differ diff --git a/table_of_contents.html b/table_of_contents.html index 28342ce2..a8999181 100644 --- a/table_of_contents.html +++ b/table_of_contents.html @@ -2011,6 +2011,36 @@
Methods
— REXML::Parsers::StreamParser ++ #entity_expansion_limit= + — + REXML::Parsers::PullParser + + + #entity_expansion_limit= + — + REXML::Parsers::SAX2Parser + + + #entity_expansion_limit= + — + REXML::Parsers::StreamParser + + + #entity_expansion_text_limit= + — + REXML::Parsers::PullParser + + + #entity_expansion_text_limit= + — + REXML::Parsers::SAX2Parser + + + #entity_expansion_text_limit= + — + REXML::Parsers::StreamParser + #entitydecl —