XPath query result order

后端 未结 5 479
心在旅途
心在旅途 2020-12-02 02:00

For another question I have created some XML related code that works on my development machine but not on viper codepad where I tested it before adding it to my answer.

5条回答
  •  臣服心动
    2020-12-02 02:40

    XPath is a query language, thus it should only read the structure of the .xml document as is and never modify it. This includes the node order. In your first example however this is not true. So this is definitely a bug according to this.

提交回复
热议问题