Possible Duplicate:
XML attribute vs XML element
I'm creating an XML document that holds cinemas. I need a way to represent the facilities a certain cinema has, but am uncertain on how to structure it.
Should I have each facility as a node? And the text inside that node would either be a 1 or 0 (true of false)? Or would it be better to have each facility as an attribute or a "facilities" node?
Attributes:
<cinema id="1">
...
<facilities advance_screenings="1" concessions="0" ... >1<facilities>
</cinema>
Nodes:
<facilities>
<advance_screenings>1</advance_screenings>
<audio_description>1</audio_description>
<bar>1</bar>
<concessions>1</concessions>
...
</facilities>
Thanks.