MarkLogic 10 Product Documentation
fn:node-kind

fn:node-kind(
   $node as node()?
) as xs:string

Summary

[0.9-ml only, use xdmp:node-kind in 1.0 and 1.0-ml] Returns an xs:string representing the node's kind: either "document", "element", "attribute", "text", "namespace", "processing-instruction", "binary", or "comment".

Parameters
node The node whose kind is to be returned.

Example

let $x := <hello><goodbye>1</goodbye></hello>
return
fn:node-kind($x/node())

=> element
Powered by MarkLogic Server | Terms of Use | Privacy Policy