On Tue, 11 Oct 2005, Ara.T.Howard wrote: > > i'm trying use the htree library for a relatively simple task in the hope > that > it's parser will outlive one i roll on my own - it certainly seems robust as > it is... in any case i'm trying to do the following > > - scan a doc for any elements that have a certain attribute > - iff the element with that attribute is of a certain class (b, i, pre, > etc) > then i'll want to replace the text of that element in-place > - finally, a new doc will be produced > > any hints appreciated. i've got a hand parsed version running now - but > really would like to use htree. on a related note, does this seem right to people: irb(main):019:0> HTree("<hr/>").display_html '' => "<hr\n>" notice it ate the closing slash. i know that's bad form, but i wonder if this is intended or not... -a -- =============================================================================== | email :: ara [dot] t [dot] howard [at] noaa [dot] gov | phone :: 303.497.6469 | Your life dwells amoung the causes of death | Like a lamp standing in a strong breeze. --Nagarjuna ===============================================================================