I am using Nokogiri.
Suppose I have a deeply nested path:
//h1/h2/h3/h4/h5
I think I can use the following path:
//h1/*/*/*/h5
Is there any way I can avoid using multiple asterisks? Something like //h1/.../h5?
I don’t want to keep counting the levels of nesting.
Just use:
//, i.e.://h5. This XPath will select allh5elements. See spec: http://www.w3.org/TR/xpath/#path-abbrev