【问题标题】:Empty xmlns is created创建空的 xmlns
【发布时间】:2014-11-03 09:30:39
【问题描述】:

我将Xelement 添加到父Xelement

rootElement.Add(schemaRootTag);  

新的 XML 元素有一个空的 xmlns 属性,例如:xmlns=""

有什么想法吗?

【问题讨论】:

  • 如何保存 XML?
  • @AndreiV,喜欢这个:xdoc.Save(path +".xml");

标签: c# xml xml-namespaces xelement


【解决方案1】:

这个问题以前在这里被问过。这完全取决于您如何创建 XElement:https://stackoverflow.com/a/12039383/616304

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-11-12
    • 1970-01-01
    • 2017-03-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多