Hi, I'm Ask INFA!
What would you like to know?
ASK INFAPreview
Please to access Ask INFA.

Table of Contents

Search

  1. Preface
  2. Understanding Data Types and Field Properties
  3. Designing Processes
  4. Using and Displaying Data
  5. Designing Guides
  6. Designing Process Objects
  7. Designing Service Connectors
  8. Using App Connections
  9. System Services, Listeners and Connectors
  10. Designing Human Tasks

Design

Design

string

string

The string function in XQuery is used to convert an argument to its string representation. It is commonly used to ensure that a given value is treated as a string.

Syntax

fn:string(arg)
The following table describes the argument for this command:
Argument
Required/Optional
Description
arg
Required
The item you want to convert to a string. This can be any atomic type, node, or sequence. The sequences with more than one item will return an error.

Return Value

Returns the value of
$arg
represented as a
xs:string
. If no argument is supplied, the context item (
.
) is used as the default argument. The behavior of the function if the argument is omitted exactly the same as if the context item had been passed as the argument.

Examples

The following table lists some sample values and return values:
SAMPLE FUNCTION
OUTPUT
fn:string(123)
"123"
fn:string("Hello, World!")
"Hello, World!"
fn:string(true())
"true"

0 COMMENTS

We’d like to hear from you!