From: Daniel Sheppard Date: 2005-09-27T13:09:20+09:00 Subject: Re: Bug In REXML Okay - I don't think this was rexml's fault. I accidentally inputted with the file that had the link tags blown away when I did the test in IRB. I'm not doing anything much more complicated than that in my other code, but since that's embedded in mousehole, I'm guessing I've done something stupid because I don't quite know what I'm doing there. For the record, what I'm doing is: document.each_element('//item/') do |e| e.each_element('description') {|x| x.remove} doc = read_xhtml_from(e.attributes['rdf:about'] + "&mode=nocomment") desc = REXML::Element.new('description') doc.each_element('//div[@class="intro"]') do |x| s = "" x.write(s) s.gsub!("—","—") desc.text = s end e << desc end (trying to turn the slashdot feed into something more useful). I don't see how any of that could have any effect on the element though. -----Original Message----- From: Daniel Sheppard Sent: Tuesday, 27 September 2005 1:11 PM To: ruby-talk ML Subject: Bug In REXML I was playing around with REXML and feeding it the RSS feed from slashdot. Running this: require 'rexml/document REXML::Document.new(open("slashdot.xml")).write I got output with empty elements: Technology for Capturing 360 Degree Video ScuttleMonkey 2005-09-26T18:01:00+00:00 tech even-guesswork-can't-save-most-hollywood-pictures I'm running ruby from the one-click installer: ruby 1.8.2 (2004-12-25) [i386-mswin32] ######################################################################## ############# This email has been scanned by MailMarshal, an email content filter. ######################################################################## ############# ##################################################################################### This email has been scanned by MailMarshal, an email content filter. #####################################################################################