From: TAKAHASHI Masayoshi Date: 2002-02-22T23:20:09+09:00 Subject: REXML benchmark test error Hello, I installed REXML 1.2.7 and tried benchmark test, but I got an error. user system total real parsing file 3.671875 0.023438 3.695312 ( 3.871421) Document.new 0.031250 0.000000 0.031250 ( 0.035211) new element 0.031250 0.000000 0.031250 ( 0.031761) add element /usr/local/lib/ruby/site_ruby/1.6/rexml/document.rb:63:in `add': attempted adding second root element to document (RuntimeError) from /usr/local/lib/ruby/site_ruby/1.6/rexml/element.rb:664:in `add' from /usr/local/lib/ruby/site_ruby/1.6/rexml/child.rb:19:in `initialize' (snip) In benchmarks/bench.rb, there is a "add element" test: document = REXML::Document.new test.report("add element") { n.times { document.add_element( "tag1", {"blah" => "four"} ) } } But Document node has only one element and cannot add other element(, right?) BTW: Could I read REXML mailing list's archive on Web? Regards, TAKAHASHI 'Maki' Masayoshi E-mail: maki@rubycolor.org