Why is node order important in XML?

后端 未结 5 617
庸人自扰
庸人自扰 2021-01-05 09:48

I\'ve been dealing with an API recently that requires nodes of the XML document to be in a particular order. I was wondering why they feel the need to enforce this when I ca

5条回答
  •  难免孤独
    2021-01-05 10:01

    One reason XML node order can matter is where an application is using a streaming parser. Having dependent elements in the expected order can allow the application to be significantly more efficient processing the XML data. This is especially true for applications processing large scale XML data.

提交回复
热议问题