I still haven't understood the problem statement property.
But to get rid of multiple columns, you may use string array or object array with single property. Add the required values from xpath query in that array. This way you will get the output row wise in a single column instead of multiple columns.
If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.