From: Robert Klemme Date: 2013-03-14T03:15:41+09:00 Subject: Re: ideas on how to determine tag On Wed, Mar 13, 2013 at 12:58 PM, Joel Pearson wrote: > I didn't go all exhaustive on it, just a general idea :) Yes, and you have been shown why regexp is the wrong tool for parsing SGML heritage - especially when there is something as awesome as Nokogiri around. :-) require 'nokogiri' dom = Nokogiri::XML <

this is a paragraph

  • list item
XML dom.xpath('//*[@id]').each do |node| printf "%-10s %s\n", node[:id], node.name end Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/