Robert Klemme wrote:
> Eric Armstrong wrote:
>> Thomas, Mark - BLS CTR wrote:
>>> Eric Armstrong wrote:
>>>> This code looks for a table that matches specific criteria:
>>>>
>>>>     XPath.each(@doc, '//table') do |tbl|
>>>>       XPath.each(tbl, '//td') do |td|
>>>>         # look for matching data
>>>
>>> You could remove one loop if you simply delve to
>>> precisely what you're looking for:
>>>
>>>   XPath.each(@doc, '//table//td') do |td|
>>>     # look for matching data
>>>
>>> And, depending on how you define "matching data" you may be able to add
>>> some XPath conditions that get rid of the loop entirely.
>>>
>> Most excellent. Some damn good Xpath expertise
>> on this list. Thanks, all.
>>
>> eric
>> (Who hasn't used Xpath expressions in more than 3 years,
>> and who is entirely capable of forgetting everything he
>> ever knew in less than 6 months.)
>> :_)
> 
> Same here: I rarely use XPath and I always have to look up the details 
> again.  IMHO it's not very intuitive.  My 0.02EUR...

PS: This is the page I use occasionally for refreshing:
http://www.w3schools.com/xpath/xpath_syntax.asp

Can anyone recommend http://www.oreilly.com/catalog/xpathpointer ?

	robert