Project

General

Profile

Bug #8844 » rexml-nested-parseerror.diff

ohai (Ippei Obayashi), 08/31/2013 01:29 PM

View differences:

lib/rexml/parsers/treeparser.rb
case event[0]
when :end_document
unless tag_stack.empty?
#raise ParseException.new("No close tag for #{tag_stack.inspect}")
raise ParseException.new("No close tag for #{@build_context.xpath}")
raise ParseException.new("No close tag for #{@build_context.xpath}",
@parser.source, @parser)
end
return
when :start_element
......
end
rescue REXML::Validation::ValidationException
raise
rescue REXML::UndefinedNamespaceException
rescue REXML::ParseException
raise
rescue
raise ParseException.new( $!.message, @parser.source, @parser, $! )
(2-2/2)