Share via


i'XPath Functions (Windows CE 5.0)

Send Feedback

XML Path Language (XPath) functions are used to evaluate expressions.

Each function in the function library is specified using a function prototype that gives the return type, function name, and argument type. If an argument type is followed by a question mark, the argument is optional; otherwise, the argument is required. Function names are case-sensitive.

The following table shows the function groups used by XPath.

Function group Description
Node-Set Takes a node-setargument, returns a node set, or returns/provides information about a particular node within a node set.
String Performs evaluations, formatting, and manipulation on string arguments.
Boolean Evaluates the argument expressions to obtain a Boolean result.
Number Evaluates the argument expressions to obtain a numeric result.
XSLT Additions to the core XPath function library.

Examples

Find all text children of author elements.

author/text()

Find all elements that have text node or CDATA node children.

*[text()]

Find the last author for each book.

book/author[last()]

See Also

XML XQL Reference | XML Query Language (XQL)

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.