Studio Pro 8 has reached its end of support. To upgrade to a supported version, see Moving from Mendix Studio Pro 8 to 9.

Studio Pro 8 has reached its end of support. To upgrade to a supported version, see Moving from Mendix Studio Pro 8 to 9.

XPath Contains

Last modified: August 27, 2024

Overview

The contains() function tests whether a string attribute contains a specific string (case-insensitive) as a sub-string.

Example

This query returns all the customers from which the name contains the string an:

//Sales.Customer[contains(Name, 'an')]

Customers with the name "Andy" or "Jan" will be returned, for example, because "an" is part of those names.