XQuery Tutorial on XQuery String Functions

the following table lists the commonly used string manipulation functions provided by xquery.

sr.no name & description
1

string-length($string as xs:string) as xs:integer

returns the length of the string.

2

concat($input as xs:anyatomictype?) as xs:string

returns the concatenated string as output.

3

string-join($sequence as xs:string*, $delimiter as xs:string) as xs:string

returns the combination of items in a sequence separated by a delimiter.