Tamino XML Server Version 9.7
 —  XQuery 4 Reference Guide  —

tf:nonXML-kind

Get the kind of a non-XML document.


Syntax

tf:nonXML-kind(document-node $doc) => string?

Top of page

Description

The function tf:nonXML-kind returns a string that describes the kind of the given document. The returned value is one of the following:

"text"

if $doc is a text non-XML document;

"binary"

if $doc is a binary non-XML document;

() (the empty sequence)

if neither of the above applies. This is the case if $doc is a pure XML document.

Top of page

Argument

$doc

The document that is to be checked.

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:

Top of page