From: Michael Neumann Date: 2001-11-18T07:38:46+09:00 Subject: [ruby-talk:25733] Re: REXML: node.type, .parent, .name Tobias Reif wrote: > Sean Russell wrote: > > parent.each do |child| > > case child.type > > when Element > > puts "Element" > > when Text > > puts "Text" > > when CData > > puts "CData" > > when Comment > > puts "Comment" > > end > > puts child.parent.type > > end > > > processing instructions too? class REXML::Instruction Regards, Michael -- Michael Neumann merlin.zwo InfoDesign GmbH http://www.merlin-zwo.de