Skip to main content

XQuery String Functions

XQuery String Functions

The following table lists the commonly used string functions provided by XQuery.

NameDescription
string-length($string as xs:string) as xs:integerIt returns the length of the string.
concat($input as xs:anyatomictype?) as xs:stringIt returns the concatenated string as output.
string-join($sequence as xs:string*, $delimiter as xs:string) as xs:stringIt returns the combination of items in a sequence separated by a delimiter.
note

XSLT 2.0, XPath 2.0, and XQuery 1.0, share the same functions library.

A complete list of string functions is available at XSL Functions

Table of Contents