I need to take all "//ul/li[not(@*)][count(*)=0]" except those that have <div> parent. I’ve tried "//not(div)/ul/li[not(@*)][count(*)=0]", but unfortunately it doesn’t work.
Does anyone know, how can i deal with that?
Thanks in advance.
I need to take all //ul/li[not(@*)][count(*)=0] except those that have <div> parent. I’ve tried
Share
I think you need:
Or:
Both selects such
ulwhen it’s the root element, also.