linq to xml - get rid of blank xmlns

后端 未结 3 1555
误落风尘
误落风尘 2021-01-19 22:23

I\'m trying to get rid of empty namespace tags in my xml file. All of the solutions i\'ve seen are based creating the xml from scratch. I have various xelements constructed

3条回答
  •  时光取名叫无心
    2021-01-19 22:45

    Possibly it's this: Empty namespace using Linq Xml

    This would indicate your document is in a different default namespace than the elements you add.

提交回复
热议问题