From: Makoto Kuwata Date: 2004-05-07T15:41:37+09:00 Subject: Re: REXML bug? Sorry for late reply. Here is the result: $ ruby -rrexml/rexml -ve 'puts REXML::Version' ruby 1.8.1 (2004-01-01) [i686-linux-gnu] 2.7.3 I think it is a version which is bundled with Ruby1.8.1. And I download and installed REXML 3.0.4, but I got the same error at the same position. =================================================================== $ ruby -rrexml/rexml -ve 'puts REXML::Version' ruby 1.8.1 (2004-01-01) [i686-linux-gnu] 3.0.4 $ ruby hoge.rb /usr/lib/ruby/site_ruby/1.8/rexml/doctype.rb:114:in `write': undefined method `e mpty?' for nil:NilClass (NoMethodError) from /usr/lib/ruby/site_ruby/1.8/rexml/document.rb:162:in `write' from /usr/lib/ruby/site_ruby/1.8/rexml/document.rb:160:in `each' from /usr/lib/ruby/site_ruby/1.8/rexml/document.rb:160:in `write' from hoge.rb:21 Makoto Kuwata wrote in message news:< >A5C432FD7549CFkwa@kuwata-lab.com>... >> I have got an error around REXML. >> I think there is a bug in REXML::Doctype#write(). > >Yes, this was a bug in Doctype; it should be fixed in the current >release of REXML, as well as in CVS; in fact, it has been fixed for a >couple of months -- I believe ti got fixed in version 3.0.2, so I'm >curious which version of REXML and Ruby you're running. > >--- SER