From: unbewusst.sein@... (=?ISO-8859-1?Q?Une_B=E9vue?=) Date: 2010-05-14T03:25:14+09:00 Subject: Re: reading file after a particular line in file Robert Klemme wrote: > Yes, that could be done. However, I would not use this for languages > from the SGML family (XML, HTML) because there are no guarantees as to > how many tags you'll find on a single line of text. There are better > tools do deal with that (REXML, Nokogiri...). Right, however REXML isn't working for badly balanced tags. I dis some test, today, of Nokogiri, it works even better than tidy for the first step cleaning unbalanced tags. the only question i have about Nokogiri is how to avoid the DOCTYPE because it outputs : even if i'm using #to_xhtml : then, the DOCTYPE is wrong... -- � La vie ne se comprend que par un retour en arri�re, mais on ne la vit qu'en avant. � (S�ren Kierkegaard)