Can anyone explain the XPath syntax written below:
xmlDoc.documentElement.selectNodes("//*/Expression[.!='']")
Basically, I need clarification of the argument path of the above syntax.
Select all the <Expression>
elements which:
//*/
- this means any but root
Expression
- element name
[.!='']
- this means current node value is not empty, i.e. current node .
is not !=
empty ''