XPath length

Last modified: August 20, 2024

Overview

The length() function returns the length of a string attribute or value.

Example

This query returns all customers with a FirstName of 5 or more characters:

    [length(FirstName) >= 5]
    
     //Sales.Customer[length(FirstName) >= 5]