diff --git a/REXML/Parsers/BaseParser.html b/REXML/Parsers/BaseParser.html index 8ae10d2f..49cd45d5 100644 --- a/REXML/Parsers/BaseParser.html +++ b/REXML/Parsers/BaseParser.html @@ -328,7 +328,7 @@
# File lib/rexml/parsers/baseparser.rb, line 162 +# File lib/rexml/parsers/baseparser.rb, line 163 def initialize( source ) self.stream = source @listeners = [] @@ -363,7 +363,7 @@Public Instance Methods
-# File lib/rexml/parsers/baseparser.rb, line 171 +# File lib/rexml/parsers/baseparser.rb, line 172 def add_listener( listener ) @listeners << listener end@@ -386,7 +386,7 @@Public Instance Methods
Returns true if there are no more events
-# File lib/rexml/parsers/baseparser.rb, line 202 +# File lib/rexml/parsers/baseparser.rb, line 203 def empty? return (@source.empty? and @stack.empty?) end@@ -409,7 +409,7 @@Public Instance Methods
-# File lib/rexml/parsers/baseparser.rb, line 534 +# File lib/rexml/parsers/baseparser.rb, line 535 def entity( reference, entities ) return unless entities @@ -438,7 +438,7 @@Public Instance Methods
Returns true if there are more events. Synonymous with !empty?
-# File lib/rexml/parsers/baseparser.rb, line 207 +# File lib/rexml/parsers/baseparser.rb, line 208 def has_next? return !(@source.empty? and @stack.empty?) end@@ -461,7 +461,7 @@Public Instance Methods
Escapes all possible entities
-# File lib/rexml/parsers/baseparser.rb, line 545 +# File lib/rexml/parsers/baseparser.rb, line 546 def normalize( input, entities=nil, entity_filter=nil ) copy = input.clone # Doing it like this rather than in a loop improves the speed @@ -495,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 223 +# File lib/rexml/parsers/baseparser.rb, line 224 def peek depth=0 raise %Q[Illegal argument "#{depth}"] if depth < -1 temp = [] @@ -528,7 +528,7 @@Public Instance Methods
-# File lib/rexml/parsers/baseparser.rb, line 192 +# File lib/rexml/parsers/baseparser.rb, line 193 def position if @source.respond_to? :position @source.position @@ -556,7 +556,7 @@Public Instance Methods
Returns the next event. This is a
PullEvent
object.-# File lib/rexml/parsers/baseparser.rb, line 238 +# File lib/rexml/parsers/baseparser.rb, line 239 def pull @source.drop_parsed_content @@ -585,7 +585,7 @@Public Instance Methods
-@@ -616,7 +616,7 @@# File lib/rexml/parsers/baseparser.rb, line 180 +# File lib/rexml/parsers/baseparser.rb, line 181 def stream=( source ) @source = SourceFactory.create_from( source ) @closed = nil @@ -594,7 +594,7 @@Public Instance Methods
@tags = [] @stack = [] @entities = [] - @namespaces = {} + @namespaces = {"xml" => Private::XML_PREFIXED_NAMESPACE} @namespaces_restore_stack = [] endPublic Instance Methods
Unescapes all possible entities
-# File lib/rexml/parsers/baseparser.rb, line 561 +# File lib/rexml/parsers/baseparser.rb, line 562 def unnormalize( string, entities=nil, filter=nil ) if string.include?("\r") rv = string.gsub( Private::CARRIAGE_RETURN_NEWLINE_PATTERN, "\n" ) @@ -679,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 213 +# File lib/rexml/parsers/baseparser.rb, line 214 def unshift token @stack.unshift(token) enddiff --git a/REXML/Parsers/BaseParser/Private.html b/REXML/Parsers/BaseParser/Private.html index 8cd06b73..4e3e8847 100644 --- a/REXML/Parsers/BaseParser/Private.html +++ b/REXML/Parsers/BaseParser/Private.html @@ -103,6 +103,8 @@Constants
TAG_PATTERN + XML_PREFIXED_NAMESPACE +