Loading TOC...

xdmp.atomizable

xdmp.atomizable(
   [$item as String]
) as Boolean

Summary

Returns true if a value could be atomized without error. If no argument is supplied, this function checks whether the context item can be atomized without error.

Parameters
$item The item to be tested for atomizability.

Example

var node = xdmp.unquote('<x xsi:type="xs:integer" \
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" \
  xmlns:xs="http://www.w3.org/2001/XMLSchema">a</x>');
node = fn.head(node).xpath("/x");
xdmp.atomizable(node);

=> false

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy