Loading TOC...

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

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.