How to check if a node tag AND a node value exist?
In a switch condition I want to check if a certain xml node (e.g. <aaa/> exists and if that xml node
contains a value not equal to whitespace(s) (e.g.<aaa>myvalue123<aaa/>). I code the following expression:
boolean(bpws:getVariableData('.......','...','/ns4:aaa')) and
xp20:compare(normalize-space(bpws:getVariableData('.......','...','/ns4:aaa')),'') != 0
Is this working?
Is there a better/smarter/shorter way to check this?
Peter