endsWith

Returns true if a String value ends with the provided substring, false otherwise

RecordPath

Return value

/name[endsWith(., 'e')]

John Doe

/name[endsWith(., 'x')]

<returns no results>

/name[endsWith(., 'xyz')]

<returns no results>

/name[endsWith(., '')]

John Doe