[Home] [By Thread] [By Date] [Recent Entries]
On 24.08.2016 21:46, Rick Quatro rick@xxxxxxxxxxxxxx wrote:
I am trying to find the deepest, last element in an xml file. When I use this xpath 1.0 statement: You can select (//*[not(*)])[last()] to find the last leaf element not having any children (which in your sample would be the <p>4</p> element). Does that suffice? Or do you want to count the ancestor nodes and determine elements with most ancestors?
|

Cart



