In XML, is order important?

后端 未结 11 2201
无人共我
无人共我 2020-11-28 11:25

Is the order that elements of a common parent appear in XML a meaningful piece of data captured by the XML document, or is order not specified as being meaningful? For examp

11条回答
  •  Happy的楠姐
    2020-11-28 12:19

    Order of elements is significant in XML, so in your example the two documents are different. Attribute order is not significant, though.

    
      
    
    

    This is exactly the same as:

    
      
    
    

提交回复
热议问题