Tobias Reif wrote: > Sean Russell wrote: .... >> parent.each do |child| >> case child.type >> when Element >> puts "Element" >> when Text .... > processing instructions too? Yes, and DocType. Everything that REXML identifies as a unique entity. >> If you check the inheritance tree (in the documentation) you'll see a .... > didn't find that; my fault. .... > sorry; I browsed the documentation, but obviously not thoroughly enough. Documentation is a very hard to write well, and I'm not very good at it anyway. If you couldn't easily find this sort of information, its more my fault than yours. --- SER -----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- http://www.newsfeeds.com - The #1 Newsgroup Service in the World! Check out our new Unlimited Server. No Download or Time Limits! -----== Over 80,000 Newsgroups - 19 Different Servers! ==-----