diff --git a/lib/rexml/parsers/streamparser.rb b/lib/rexml/parsers/streamparser.rb index 51441289d9..49bef0d8fa 100644 --- a/lib/rexml/parsers/streamparser.rb +++ b/lib/rexml/parsers/streamparser.rb @@ -22,8 +22,11 @@ module REXML @listener.text( normalized ) when :processing_instruction @listener.instruction( *event[1,2] ) - when :comment, :doctype, :attlistdecl, - :elementdecl, :entitydecl, :cdata, :notationdecl, :xmldecl + when :start_doctype + @listener.doctype( *event[1..-1] ) + when :notationdecl, :entitydecl, :elementdecl + @listener.notationdecl( event[1..-1] ) + when :comment, :attlistdecl, :elementdecl, :cdata, :xmldecl @listener.send( event[0].to_s, *event[1..-1] ) end end diff --git a/lib/rexml/rexml.rb b/lib/rexml/rexml.rb index 540d5c3a9d..6403a785c0 100644 --- a/lib/rexml/rexml.rb +++ b/lib/rexml/rexml.rb @@ -10,7 +10,7 @@ # # Main page:: http://www.germane-software.com/software/rexml # Author:: Sean Russell -# Version:: 3.0.8 +# Version:: 3.0.9 # Date:: +2004/137 # # This API documentation can be downloaded from the REXML home page, or can @@ -22,5 +22,5 @@ module REXML Copyright = "Copyright © 2001, 2002, 2003, 2004 Sean Russell " Date = "+2004/137" - Version = "3.0.8" + Version = "3.0.9" end