XQuery string-length Function
The string-length function is used to get the length of a string.
Syntax
string-length($string as xs:string) as xs:integerInput Parameters
$stringis the provided string.
Example
let $bookTitle := "Learn XQuery"
let $size := string-length($bookTitle)
return
<result>
<size>{$size}</size>
</result><result>
<size>12</size>
</result>