RE: Find End Date and set for all related records
Following on from my previous 2 questions, I wanted to check if the following is possible. I have created an output similar to the below image:

My final output will be in XML format, is it possible to drop the 'Non UK' column for the first 2 records? So in theory the 2nd and 3rd records would appear something like the below image (i.e. Row 12: NonUK is only present when not null):

I have been able to program the XML output but can't remove 'NonUK' from Row 2. Is it possible to remove this before output so my file does not appear like the below:

Many thanks