07-30-2009, 04:20 PM
|
#3 (permalink)
|
|
La Vida es Sueño
Join Date: Sep 2007
Location: Oldham
Posts: 2,267
Thanks: 90
|
I've started to get more into XPath recently, and it is a fantastic way to traverse the nodes! Something like so:
Code:
//span[@class='time']/parent::div
That would select all the span elements where the class is precisely time -- if it's not precise you can use the contains function. Then its parent node of type div.
It's such a beautiful way of doing things!
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
|
|
|