Project

General

Profile

Actions

Backport #7764

closed

REXML -- Malformed comment

Added by lehphyro (Leandro A) about 11 years ago. Updated about 11 years ago.

Status:
Closed
[ruby-core:51784]

Description

I'm getting the following trying to parse the attached xml:

C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/parsers/treeparser.rb:95:in `rescue in parse': #<REXML::ParseException: Malformed comment (REXML::ParseException)
Line: 181
Position: 7663
Last 80 unconsumed characters:

C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/parsers/baseparser.rb:346:in pull_event' C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/parsers/baseparser.rb:183:in pull'
C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/parsers/treeparser.rb:22:in parse' C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/document.rb:231:in build'
C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/document.rb:43:in initialize' install.rb:74:in new'
install.rb:74:in `'
...
Malformed comment
Line: 181
Position: 7663
Last 80 unconsumed characters:

Line: 181
Position: 7663
Last 80 unconsumed characters:
from C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/parsers/treeparser.rb:20:in parse' from C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/document.rb:231:in build'
from C:/dev/tools/ruby193/lib/ruby/1.9.1/rexml/document.rb:43:in initialize' from install.rb:74:in new'
from install.rb:74:in `'

Line 74 of install.rb is:

doc = REXML::Document.new(File.new('settings.xml'))


Files

settings.xml (9.87 KB) settings.xml lehphyro (Leandro A), 02/01/2013 03:41 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0