I have the following XML string:
<?xml version="1.0" encoding="UTF-8"?>
<a>
<b>
<c>r</c>
<c>s</c>
<c>t</c>
</b>
<b>
<c>u</c>
<c>v</c>
<c>w</c>
</b>
<b>
<c>x</c>
<c>y</c>
<c>z</c>
</b>
</a>
With an XPath query of "a/b/c/text()" I can extract a list easily:
[ r, s, t, u, v, w, x, y, z ]
Is it possible to get the result grouped by the level 'b' like this:
[
[ r, s, t ],
[ u, v, w ],
[ x, y, z ]
]