Hi,

I am a little confused about when you should use what. Here's an example:

Should I use this xml:
Code:
<person>
   <name>shunt</name>
</person>
or should I use this xml:

Code:
<person name="shunt"/>
Can anyone tell me which one would be correct and why.