Hey, I parsed the html doc. you need to find the whole element that has the specified child (may not be a direct descendant).
for ex:
<center> <table> ... <a /> </center>
find all "center" tags that have a nested link thanks!
Using
//center[.//a]
This selects all center elements in the document that has a child.
center
And this:
//center[.//*/a]
selects all center elements in the document that have a child, which is not a child of this center .
How about the following:
//center[element()//a]
This means finding all the "central" elements containing any elements "a" that are descendants of "children with a direct direct element."
You cannot use the descendant axis in a predicate?
//center[descendant::a]