From: Greg Ma Date: 2010-06-09T22:35:33+09:00 Subject: Html parsing with Hpricot Hi, I need to parse a wonderful html page full of tables everywhere! Obviously I am using Hpricot to parse my html, and this what I've done so far. But now I stuck :S page.search("#profile > table > tr")[1].at("td").at("table") In my table element I now need to fetch childs "tr", so I've done this: page.search("#profile > table > tr")[1].at("td").at("table").search("tr") But this isn't working because it fetches the childs and inside the childs. HOw can I fetch just the childs elements? Greg -- Posted via http://www.ruby-forum.com/.