Controlling the order of XML namepaces

前端 未结 6 1159
你的背包
你的背包 2021-01-15 00:26

I\'m having a problem getting the \"xmlns\" to appear first in the root attribute list.

Im getting this:

  

        
6条回答
  •  别那么骄傲
    2021-01-15 01:10

    Software that requires attributes to be in a specified order doesn't conform to the XML recommendation.

    The first question you should be asking is not, "How can I produce XML with namespace attributes in a defined order?" Instead, it should be, "What are the other respects in which this software doesn't conform to the XML recommendation?" Because I will bet you one crisp new American dollar that if the recipient's process violates the XML recommendation in one respect, it violates it in at least one other.

提交回复
热议问题