【问题标题】:Where to locate the unattend.xml schemaunattend.xml 架构的位置
【发布时间】:2010-04-14 20:48:47
【问题描述】:

我需要一种以编程方式修改unattend.xml 文件的方法。如果我可以序列化到对象和从对象序列化,那就太好了。但要这样做,我需要掌握架构,以便我可以通过 XSD 运行它。引用的链接提供了所有可能的设置,但最好是 XSD 格式。

有什么想法吗?

【问题讨论】:

    标签: c# xml serialization xsd unattend-file


    【解决方案1】:

    你可以通过安装Windows AIK.来获取unattend.xsd

    【讨论】:

      【解决方案2】:

      您可以使用xsd.exe 实用程序从 XML 文件生成 XSD 架构。

      xsd.exe unattend.xml
      

      【讨论】:

      • 是否有某种方法可以确保在没有 XSD 的情况下 XML 完整且有效?我宁愿从定义中生成 XML,而不是从 XML 中生成定义。
      猜你喜欢
      • 2019-11-14
      • 1970-01-01
      • 2010-12-18
      • 2015-02-27
      • 1970-01-01
      • 1970-01-01
      • 2015-03-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多