XPath length

Last modified: April 21, 2023

1 Overview

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

2 Example

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

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