sql:octet-length( $x as xs:string ) as xs:integer
Returns the length of the string "str" in bits.
sql:octet-length("text") => 4
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.