How to automatically detect a namespace in the root label, to then extract its value into a variable and be able to loop through the elements

Yes, I want to extract elements from element in a datatable. I have 2 items InvoiceLine