Look at this screenshot of my issue:



I just need for php to create the exact xml structure I need.

The php blocks in (1), make the xml on (2) when there is one row, makes the xml on (3) when there are two rows, but what I want is (4), not (3).

How do I achieve this?

Thanks,

G