Linebreak in XML loop

wxdqz

New Member
Hello,

I have a XML file created by an employee schedule program. The XML file contains all the data for all the employees and their shifts. I would like to publish the schedule on our intranet, but I抦 having some difficulties.

I would like to have a empty(blank) line between each employee.

For example the XML file looks like this:
<shift>
<EmployeeName>John</EmployeeName>
<shiftdate>2006-05-05</shiftdate>
<starttime>06:00</ starttime>
<endtime>12:00</ endtime>
</shift>
<shift>
<EmployeeName>John</EmployeeName>
<shiftdate>2006-05-06</shiftdate>
<starttime>06:00</ starttime>
<endtime>12:00</ endtime>
</shift>
<shift>
<EmployeeName>John</EmployeeName>
<shiftdate>2006-05-07</shiftdate>
<starttime>09:00</ starttime>
<endtime>18:00</ endtime>
</shift>
<shift>
<EmployeeName>Erik</EmployeeName>
<shiftdate>2006-05-08</shiftdate>
<starttime>08:00</ starttime>
<endtime>14:00</ endtime>
</shift>
And this is being displayed as:


Name date start end -time
John 2006-05-05 06:00-12:00
John 2006-05-05 06:00-12:00
John 2006-05-05 09:00-18:00
Erik 2006-05-08 08:00-14:00

The next employee name comes directly after the one before, I would like a line break between each different employee.
 
Back
Top