Be the first to know! News, product information, and events delivered straight to your inbox.
Be the first to know! News, product information, and events delivered straight to your inbox.
Be the first to know! News, product information, and events delivered straight to your inbox.
Be the first to know! News, product information, and events delivered straight to your inbox.
Be the first to know! News, product information, and events delivered straight to your inbox.
BooleanNode.nodeType as Number
This is inherited from the Node object.
Return the DOM code indicating the type of the node.Node
object defines
symbolic constants equivalent to these values, such as Node.DOCUMENT_NODE.
The tables below include both the raw value and constant name for each
node type.
The following are the standard DOM node type values. Each type is identified by its symbolic constant, followed by the raw value in parentheses.
The following are MarkLogic's extended node type values.
function firstChildIsText(node) { return (node.nodeType == Node.TEXT_NODE); }; firstChildIsText( fn.head(cts.doc("example.xml").xpath("./body/node()"));
Comments