MarkLogic 10 Product Documentation
xdmp.isWhitespaceNode

xdmp.isWhitespaceNode(
   [text as Node]
) as Boolean

Summary

Returns true if the node is a text node containing only whitespace.

Parameters
text The node to be tested.

Example

var node = xdmp.unquote('<x>a</x>');
node = fn.head(node).xpath("/x");
xdmp.isWhitespaceNode(node);

=> false
Powered by MarkLogic Server | Terms of Use | Privacy Policy