consider the following example
div > h1 > p > a
div.children()
gives the immediate children which is h1
of course i use find('*')
to get all descendants.
however, i need div.find( h1 > p > a)
not div.find(h1,p,a)
, which is what the default find('*') is doing: it is simply ignoring the original hiearchy.
please note that div can be anything. the whole hiearchy can vary in depth. ie) div > h1 > span > b > i > a and etc....