I've noticed that different XML schemas define child elements differently. Some define them directly under the parent nodes like so:
<parent>
<foo />
<foo />
...
<foo />
<bar />
<bar />
...
<bar />
</parent>
where as others define container nodes around the child nodes like so:
<parent>
<foos>
<foo />
<foo />
...
<foo />
</foos>
<bars>
<bar />
<bar />
...
<bar />
</bars>
</parent>
I haven't had any issues serializing/deserializing into either format as necessary, and I can't think of any reasons to prefer one over the other.
What (if any) are the pros/cons of each approach?