Posts Tagged ‘Xpath’
Sum with empty element on XPath using .Net
When using sum function on XPath using .net you will get errors “Nan” if the node is empty because it use for numbers only. So, you need to select the nodes/elements that are not empty.
sum(//Quantity[node()])