From: "henryturnerlists@..." Date: 2008-10-09T04:05:29+09:00 Subject: Re: Hpricot elem index/position Thanks for the hint towards to libxml-ruby! I didn't even know it existed. Can't see anything for character position but very happy indeed. Will have a go at implementing it myself when poss.. cheers -h On Oct 8, 3:57 am, Mark Thomas wrote: > 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.