From: pablitoman Date: 2009-12-16T13:55:05+09:00 Subject: swapping tags & deleting tags via nokogiri let's say I have an xml document like this some text blah blah is there a simple method in nokogiri to: step 1: convert all tags to something else (e.g.,

) creating this…

some text blah blah

step 2: remove all tags but keep the internal tags, creating this

some text blah blah

I imagine that step 2 is done all the time and there's probably a simple way to do it, but I'm not sure where to begin with either. file = Nokogiri::XML(File.new(file_name)) # <= this is about as far as I've gotten (not very...) Thanks!!