R
razael1
Let's say, for example, that I want to represent universities in XML.
Each university has any number of buildings, departments, and offices.
Which of these is better?
Option A:
<university>
<building>
<name>...</name>
</building>
...(include all buildings)
<department>
...(do the same for departments and offices)
</university>
Option B:
<university>
<buildings>
<building>
...
</buildings>
<departments>
<department>
...
</departments>
etc.
</university>
Are putting the different types of objects in their own groups
redundant, or does it make things clearer/more organized?
Thanks,
Colin K.
Each university has any number of buildings, departments, and offices.
Which of these is better?
Option A:
<university>
<building>
<name>...</name>
</building>
...(include all buildings)
<department>
...(do the same for departments and offices)
</university>
Option B:
<university>
<buildings>
<building>
...
</buildings>
<departments>
<department>
...
</departments>
etc.
</university>
Are putting the different types of objects in their own groups
redundant, or does it make things clearer/more organized?
Thanks,
Colin K.