tags:

views:

24

answers:

3

are

<parent>
    <first_child>1111111</first_child>
    <second_child>2222222</second_child>
</parent>  

and

<parent>
    <second_child>2222222</second_child>
    <first_child>1111111</first_child>
</parent>

should be considered as xmls with the same structure or not?

+2  A: 

It entirely depends on what's going to interpret the XML.

Imagine it's actually HTML, and these are paragraph tags... obviously the order matters. In other cases, it may not.

Jon Skeet
A: 

It depends on the schema that is used to validate it.

Raj
+1  A: 

It basically depends on how you define your schema, e.g. with XSD you can use all if order does not matter or sequence if it does. See the w3schools page for details.

Fabian Steeg