Should xml represent a set or a list?
Posted
by sixtyfootersdude
on Stack Overflow
See other posts from Stack Overflow
or by sixtyfootersdude
Published on 2010-04-19T19:59:32Z
Indexed on
2010/04/19
20:13 UTC
Read the original article
Hit count: 192
I always think of xml like a set data structure. Ie:
<class>
<person>john</person>
<person>sarah</person>
</class>
Is equivalent to:
<class>
<person>sarah</person>
<person>john</person>
</class>
Question One: Are these two things logicly equivalant?
Are you allowed to make things like this in xml?
<methodCall>
<param>happy</param>
<param>sad</param>
</methodCall>
Or do you need to do it like this:
<methodCall>
<param arg="1">happy</param>
<param arg="2">sad</param>
</methodCall>
Question Two: Are these two things logically equivalent?
Question Three: Is xml usually treated like a set or a list?
© Stack Overflow or respective owner