Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

The XML Path Language (XPath) syntax supports Boolean functions that return strings or numbers, and can be used with comparison operators in filter patterns.

The following table shows the Boolean functions implemented by XPath.

Function Description

boolean Function

Converts the argument to a Boolean.

false Function

Returns False.

lang Function

Returns True if the xml:langattribute of the context node is the same as the argument string.

not Function

Returns True if the argument is false, and a false otherwise.

true Function

Returns True.

See Also

Reference

XPath Functions