From: Its Me Date: 2004-04-21T17:19:06+09:00 Subject: Re: rexml: how to get element type? "gabriele renzi" wrote in message > >doc = REXML::Document.new < > > > > > > > > >EOF > > > >doc.elements.each( "/a" ) do |a| > > a.elements.each |child| do > > # how to get child.type ? i.e. "b", "c" > > end > >end > > > > maybe you want .name() ? Thanks, that worked. name() does not show up in my RDoc (the version that came with my rexml install).. Wonder why? name() is hardly likely to be a recent addition!