MarkLogic 12 EA 1 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