xdmp.isWhitespaceNode( [text as Node] ) as Boolean
Returns true if the node is a text node containing only whitespace.
Parameters | |
---|---|
text | The node to be tested. |
var node = xdmp.unquote('<x>a</x>'); node = fn.head(node).xpath("/x"); xdmp.isWhitespaceNode(node); => false
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.