<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.atomizable.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.atomizable</api:function-name><api:suggest>xdmp.atomizable</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>atomizable</api:suggest><api:function-link mode="xquery" fullname="xdmp:atomizable">/apidoc/8.0/xdmp:atomizable.xml</api:function-link><api:function mode="javascript" name="atomizable" type="builtin" lib="xdmp" category="Extension" subcategory="Extension" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.atomizable"><api: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.
</api:summary><api:params><api:param name="item" type="item()" optional="true"><api:param-description>
    The item to be tested for atomizability.
  </api:param-description><api:param-name>item</api:param-name><api:param-type>String</api:param-type></api:param></api:params><api:return>Boolean</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
var node = xdmp.unquote('&lt;x xsi:type="xs:integer" \
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" \
  xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;a&lt;/x&gt;');
node = node.toArray()[0].xpath("/x");
xdmp.atomizable(node);

=&gt; false
</pre>
</api:example></api:function></api:function-page>