
Hpricot is flexible and fast html/xml parser.
To install:
$ sudo gem install hpricot
require 'hpricot'
doc = Hpricot(xml_string)
doc.search("/rows/row").each do |row|
group_and_row_id = row.get_attribute("id")
row.search("/cell").each do |cell|
cell_text = cell.html
end
end
0 comments:
Post a Comment