I
Ian Partridge
Hello,
I am planning to use XML in a log file for an application I am writing. The
format will be something like:
<task date="2003-10-09" time="12:03:45">
<action type="action1" timetaken="4" />
<action type="action2" timetaken="4" />
<action type="action3" timetaken="4" />
</task duration="12">
Is this legal XML? Are you allowed attributes in closing tags? (the
"duration" attribute for example). If not, how can I produce output similar
to this which is valid XML - bearing in mind that the total time taken for
a "task" will not be known until each "action" has completed. Also, it is
not guaranteed that the task duration will be equal to the sum of the
action durations.
Many thanks in advance,
Ian Partridge
I am planning to use XML in a log file for an application I am writing. The
format will be something like:
<task date="2003-10-09" time="12:03:45">
<action type="action1" timetaken="4" />
<action type="action2" timetaken="4" />
<action type="action3" timetaken="4" />
</task duration="12">
Is this legal XML? Are you allowed attributes in closing tags? (the
"duration" attribute for example). If not, how can I produce output similar
to this which is valid XML - bearing in mind that the total time taken for
a "task" will not be known until each "action" has completed. Also, it is
not guaranteed that the task duration will be equal to the sum of the
action durations.
Many thanks in advance,
Ian Partridge