startsWith

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

RecordPath

Return value

/name[startsWith(., 'J')]

John Doe

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

<returns no results>

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

<returns no results>

/name[startsWith(., '')]

John Doe