Why does sum (// *) return this response to this xml?

This is xml

<a><b>2</b><c>3</c></a>

And this is an XPath request

sum(//*)

Which gives the following result:

Type: Num
Value : 28.0000

This is XPath 1.0.
Please explain the types of conversions (step by step).

+4
source share
1 answer

Let me break it:

+6
source

Source: https://habr.com/ru/post/1658121/


All Articles