xpathCheck if a node's text is empty


Syntax

  • boolean(path_to_node/text())
  • string(path_to_node) != ''

Remarks

Boolean function has other uses

  1. Check if a node is present
  2. Check if the argument is not a number (NaN) or is 0

String function is used to return the string value of a node.