XPath ends-with

Last update: Download PDF Edit

The ends-with() function checks whether a String attribute ends with a specific string (case-insensitive) as a sub-string.

//Sales.Customer[ends-with(Name, 'sen')]

This query returns all customers whose name ends with the substring ‘sen’. Customers with the name ‘Jansen’ or ‘Janssen’ will be returned, because both names end with ‘sen’.