How to use string-length operation in String Function Using XPath in Xml

In this article I will explain string-length operation of string function.
  • 1710

Introduction

The String's string-length function can be used to find the number of characters in the string and return it. This function is case-sensitive. If the argument is not present then it returns the number of characters of the current node.

Syntax

number string-length (string)

Hear string-length is a function that takes the string argument and return the number of character present in the string.

Example

string-length ("Richa")
string-length ("Richa Garg")
string-length ("1234richa")

Output

The output of the above function is as,

5
10
9

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2019 DotNetHeaven. All rights reserved.