XQuery data and text() function

text() is used to match something. For example if we have this structure: Doing //b/text() will return the text node ‘hello ‘ just like //b/element() will return the element c. data($arg) is a function that returns the atomic value of a node, for example data(//b) will return ‘hello world’. If you use the data($arg) function … Read more