From: kou@... Date: 2017-06-07T13:02:10+00:00 Subject: [ruby-core:81606] [Ruby trunk Bug#13636] REXML::Document.parse_stream doesn't handle when closing tag not provided Issue #13636 has been updated by kou (Kouhei Sutou). Thanks for your report. I've added a validation on end of document. ---------------------------------------- Bug #13636: REXML::Document.parse_stream doesn't handle when closing tag not provided https://bugs.ruby-lang.org/issues/13636#change-65304 * Author: fanantoxa (Anton Sivakov) * Status: Closed * Priority: Normal * Assignee: kou (Kouhei Sutou) * Target version: 2.5 * ruby -v: ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux] * Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN ---------------------------------------- I've tried to use REXML for parsing but got unexpected behavior: Here is example: ~~~ ruby require 'rexml/document' require 'rexml/streamlistener' class Handler include REXML::StreamListener end xml1 = StringIO.new("