Tamino XML Server Version 9.7
 —  XQuery 4 Reference Guide  —

tf:text-content

Retrieve non-XML text content from a non-XML document.


Syntax

tf:text-content(documentNode $doc) => string?

Top of page

Description

The content of a persistent pure non-XML text document can be accessed via its XML view; however, this does not work for a non-XML text document that has a shadow XML document, because the shadow XML document obstructs the view of the text content. Also any text content of a transient non-XML text document is not accessible this way, because the root element is not present for a transient non-XML document. Use the function tf:text-content to retrieve non-XML text content.

The function returns:

Top of page

Argument

$doc

The document

Top of page

Example

tf:text-content(document{"ABC"})

Returns the string "ABC" that was previously constructed as a non-XML text content.

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:

Top of page