Loading TOC...

xdmp:is-whitespace-node

xdmp:is-whitespace-node(
   [$text as node()]
) as xs:boolean

Summary

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

Parameters
$text The node to be tested.

Example

xdmp:is-whitespace-node(<x>a</x>)

=> false()

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

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.
  • xdmp:is-whitespace-node((text{""},text{" "},text{" "})) => true, true, false note. #3 text has a japanese full-width space inside