From: Mark Thomas Date: 2008-10-08T11:57:57+09:00 Subject: Re: Hpricot elem index/position On Oct 7, 1:36 pm, I wrote: > Well, libxml stores the line number of every element. So you can > extract all links, check them, and print out element.line_num for each > one that fails the check. Oops, my example mistakenly used the XML parser, so replace that with XML::HTMLparser since you are parsing HTML. -- Mark.