From: Hugh Sasse Staff Elec Eng Date: 2004-08-10T22:51:41+09:00 Subject: Re: YAML problem, possibly? On Tue, 10 Aug 2004, Sean E. Russell wrote: > On Tuesday 10 August 2004 06:35, Hugh Sasse Staff Elec Eng wrote: >> I used D last night on one machine, but it blows up on this one in >> REXML, for reasons I don't know, but I get the same YAML problem as >> before with I.aiml. In case anyone was wondering about my typing >> skills [or worse] :-). > > What is the REXML error message? I remembered over lunch that I did fixup some bugs in the XML in some files on the other machine, and D was probably one. E:\Downloads\AnnaAIML-.7.0\anna_brain>xml_to_yaml.rb c:/ruby/lib/ruby/1.8/rexml/parsers/treeparser.rb:85:in `parse': REXML::ParseExce ption from c:/ruby/lib/ruby/1.8/rexml/document.rb:176:in `build' from c:/ruby/lib/ruby/1.8/rexml/document.rb:45:in `initialize' from E:/Downloads/AnnaAIML-.7.0/anna_brain/xml_to_yaml.rb:6:in `new' from E:/Downloads/AnnaAIML-.7.0/anna_brain/xml_to_yaml.rb:6 from E:/Downloads/AnnaAIML-.7.0/anna_brain/xml_to_yaml.rb:5:in `open' from E:/Downloads/AnnaAIML-.7.0/anna_brain/xml_to_yaml.rb:5 E:\Downloads\AnnaAIML-.7.0\anna_brain> The problem with this message is not that it is a ParseError, it is that it doesn't tell you where in the stream (line, token, ?) it has died. I should be the first to admit, however, that my ability to write parsers, and ones that give useful diags, leaves A LOT to be desired; so this really is intended to be constructive criticism! When REXML works it is a pleasure to use. Thank you, Hugh >