
November 22nd, 2011, 07:22 AM
|
|
Contributing User
|
|
Join Date: Nov 2004
Location: Kurvi
|
|
|
Using attribute or <tag>data</tag>
General design question, is there any difference, or any preferences between attributes or tags? This is mostly academic question... My practical situtation is whether I should use:
(There will be multiple "vat" -tags, but only one "site" -tag)
Tag:
Code:
<site>
<vat>
<vat_id>123</vat_id>
<group>
<name>System</name>
<location>Cuba</location>
</group>
<group>
<name>General</name>
<location>Sanchez</location>
</group>
</vat>
</site>
or Attribute:
Code:
<site>
<vat id="123">
<group>
<name>System</name>
<location>Cuba</location>
</group>
<group>
<name>General</name>
<location>Sanchez</location>
</group>
</vat>
</site>
The data is ... conceptual.
__________________
Gabba Gabba Hey
|