On 11/14/05, James Britt <james_b / neurogami.com> wrote: > There a nice article by Koen Vervloesem about REXML up on the XML.com site: > > http://www.xml.com/pub/a/2005/11/09/rexml-processing-xml-in-ruby.html?CMP=OTC-TY3388567169 > > James Britt > > > -- > > http://www.ruby-doc.org - Ruby Help & Documentation > http://www.artima.com/rubycs/ - Ruby Code & Style: Writers wanted > http://www.rubystuff.com - The Ruby Store for Ruby Stuff > http://www.jamesbritt.com - Playing with Better Toys > http://www.30secondrule.com - Building Better Tools > > I'm afraid it's not proper reporting here. $ ruby code1.rb /usr/lib/ruby/site_ruby/rexml/document.rb:187:in `build': undefined method `add_element' for nil:NilClass (NoMethodError) from /usr/lib/ruby/site_ruby/rexml/document.rb:44:in `initialize' from code1.rb:4:in `new' from code1.rb:4 $ ruby code2.rb /usr/lib/ruby/site_ruby/rexml/document.rb:187:in `build': undefined method `add_element' for nil:NilClass (NoMethodError) from /usr/lib/ruby/site_ruby/rexml/document.rb:44:in `initialize' from code2.rb:21:in `new' from code2.rb:21 However, code3.rb worked well. -- http://nohmad.sub-port.net