How can I write xml with a namespace and prefix with XElement?

后端 未结 5 1409
北海茫月
北海茫月 2020-12-01 23:31

This may be a beginner xml question, but how can I generate an xml document that looks like the following?



        
5条回答
  •  既然无缘
    2020-12-02 00:07

    I hope you will get some useful information from this thread - XElement default namespace on attributes provides unexpected behaviour

    EDIT:

    Another FAQ at - http://social.msdn.microsoft.com/Forums/en-US/xmlandnetfx/thread/c0648840-e389-49be-a3d2-4d5db17b8ffffd

提交回复
热议问题