How many types of Functions in XPath using Xml

In this article I will explain the types of functions that we use in XPath.
  • 1907

Introduction

The self contained block of statement are known as Functions, the XPath functions can be used to refines the XPath queries and enhance the programming power and flexibility of XPath. The Functions in XPath that we used are divided into the following groups:

  • Node-Set  :  This function takes a node-set argument, returns a node-set, or returns the  information about a particular node within a node-set. Some of the node-set functions are :
  •  
    • count
    • Id
    • Last
    • Local Name
    • name
    • namespace-uri
    • position
       
  • String : This function performs evaluations, formatting, and manipulation on string arguments. Some of the string functions are :
  •  
    • cancat
    • contains
    • normalize-space
    • starts-with
    • string
    • string-length
    • substring
    • substring-after
    • substring-before
    • translate
       
  • Boolean : This function is used to evaluates the argument expressions to obtain a Boolean result.Some of the Boolean functions are :
  •  
    • boolean
    • false
    • lang
    • not
    • true
       
  • Number : This function is used to evaluates the argument expressions to obtain a numeric result. Some of the Number functions are:
  •  
    • ceiling
    • floor
    • number
    • round
    • sum

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.