How to specify elements wrapped in a variable parent
I'm building an open data table and I'd like to test it with some more complicated test queries. However, the responses uses a variable name for each node instead of a generic "item". Here's sample data. I would like to return the legal_basis for each item to be cross referenced with another table. However, the parent node is not consistent.
How would you grab only the legal_basis value for each node? What if there could be more than one for each document?