Sort all attributes of XML in SQL query using XQuery

前端 未结 4 1926
执念已碎
执念已碎 2021-01-18 18:53

How can get the XML with sorted attributes using XQuery in SQL?

for example for this XML:

         


        
4条回答
  •  灰色年华
    2021-01-18 19:10

    Attributes are unordered in XML, so the document is considered the same whichever order the attributes are printed out in. XQuery certainly has no way to change the order of attributes, and I doubt SQL XML does either.

提交回复
热议问题