Loading TOC...

MarkLogic 9 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

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