Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
XPath Reference
XPath Functions

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
String Functions [XPath]

String functions are used to evaluate, format, and manipulate string arguments, or to convert an object to a string.

Function Description

concat

Returns the concatenation of the arguments.

contains

Returns true if the first argument string contains the second argument string; otherwise returns false.

normalize-space

Returns the argument string with the white space stripped.

starts-with

Returns true if the first argument string starts with the second argument string; otherwise returns false.

string

Converts an object to a string.

string-length

Returns the number of characters in the string.

substring

Returns the substring of the first argument starting at the position specified in the second argument and the length specified in the third argument.

substring-after

Returns the substring of the first argument string that follows the first occurrence of the second argument string in the first argument string.

substring-before

Returns the substring of the first argument string that precedes the first occurrence of the second argument string in the first argument string.

translate

Returns the first argument string with occurrences of characters in the second argument string replaced by the character at the corresponding position in the third argument string.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker