Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Question about design Question about designTo: NULL Date: 11/1/2006 10:28:00 AM
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.
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
