From: David Vallner Date: 2006-12-17T02:18:28+09:00 Subject: Re: Hpricot html parsing --------------enig33E9091034D4C2BDEBAF685B Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable ruby talk wrote: > Ask: >=20 > http://code.whytheluckystiff.net/hpricot/ticket/32 >=20 > text in xpath should return a text node if present. For example: > (doc/"/html/body/div[1]/*/table[0]/tr[0]/*/b[9]/text") >=20 Well, it's 'text()' not 'text'. Luckily _why noticed. > * lib/hpricot/elements.rb: added support for selecting text > nodes with text(): //p/text(), //p[a]//text(), etc. W00t ;P Thanks for pointing this out. David Vallner PS: Your email address name confuses the heck out of me. Please use something that doesn't cause a mental namespace clash? --------------enig33E9091034D4C2BDEBAF685B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) iD8DBQFFhCpcy6MhrS8astoRAqATAJ9aaFisLlRV2vMdrMpycIj+uWgjZACdE5iQ F4GF/Ef4SAkCrZ5Gss/B1mo= =jQhx -----END PGP SIGNATURE----- --------------enig33E9091034D4C2BDEBAF685B--