I always think of xml as a set data structure . I.e:
<class>
<person>john</person>
<person>sarah</person>
</class>
It is equivalent to:
<class>
<person>sarah</person>
<person>john</person>
</class>
Question One: Are these two things logically equivalent?
Are you allowed to do such things in xml?
<methodCall>
<param>happy</param>
<param>sad</param>
</methodCall>
Or 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 handled as a collection or list?
source
share