Bug #8844 » rexml-nested-parseerror.diff
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, $! )
|
- « Previous
- 1
- 2
- Next »