diff options
Diffstat (limited to 'lib/rexml/parsers/streamparser.rb')
-rw-r--r-- | lib/rexml/parsers/streamparser.rb | 7 |
1 files changed, 5 insertions, 2 deletions
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 |