<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.nodeKind.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.nodeKind</api:function-name><api:suggest>xdmp.nodekind</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>nodekind</api:suggest><api:function-link mode="xquery" fullname="xdmp:node-kind">/apidoc/8.0/xdmp:node-kind.xml</api:function-link><api:function mode="javascript" name="nodeKind" type="builtin" lib="xdmp" category="Extension" subcategory="Extension" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.nodeKind"><api:summary>
<p xmlns="http://www.w3.org/1999/xhtml">
  Returns an <code>xs:string</code> representing the node's kind: either
  "document", "element", "attribute", "text", "namespace",
  "processing-instruction", "binary", or "comment".
</p>
<p xmlns="http://www.w3.org/1999/xhtml">
  The <code>fn:node-kind</code> builtin was dropped from the final XQuery 1.0
  spec.  This is the equivalent function in the <code>xdmp:</code> namespace
  carried over for MarkLogic 1.0 dialects.
</p>
</api:summary><api:params><api:param name="node" type="node()"><api:param-description>
  The node whose kind is to be returned.
  </api:param-description><api:param-name>node</api:param-name><api:param-type>Node</api:param-type></api:param></api:params><api:return>String</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
var x = {hello: "goodbye"};
xdmp.nodeKind(x);

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