【问题标题】:how to remove default xmlns entries when serializing a class [duplicate]序列化类时如何删除默认的xmlns条目[重复]
【发布时间】:2009-05-06 05:01:06
【问题描述】:

我已经实例化了一个可序列化的类,并将其序列化到一个文件中,但它总是将以下属性放在我的根元素中:

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" 

我怎样才能阻止它?

【问题讨论】:

    标签: .net xml serialization xml-serialization


    【解决方案1】:

    这已经在 Stack Overflow 上问过了

    Remove empty xmlns="" after Xml Serialization

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2010-12-17
      • 2014-12-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-01-09
      相关资源
      最近更新 更多