XPath count
Last modified: April 21, 2023
1 Overview
The count()
function counts all objects retrieved by the enclosed query and returns the value as an integer.
2 Examples
This query returns a count of all the placed orders:
count(//Sales.Order)
This query returns a count of all the orders placed by a customer named “Jansen”:
count(//Sales.Order[Sales.Customer_Order/Sales.Customer/Name = 'Jansen'])
Feedback
Was this page helpful?
Glad to hear it! Thank you for your response.
Sorry to hear that. Please tell us how we can improve.