From: Its Me Date: 2004-04-21T16:24:15+09:00 Subject: rexml: how to get element type? 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 Thanks!