【问题标题】:Create xsd for xaml objects为 xaml 对象创建 xsd
【发布时间】:2011-12-06 18:38:28
【问题描述】:

.Net 框架中是否有用于为 xaml 对象创建 xml 架构定义的库函数? 或者是否可以控制 xsd.exe 的行为,从而创建这些架构定义?

【问题讨论】:

    标签: c# .net xaml


    【解决方案1】:

    XAML 是 XML 的一个子集(据我所知),所以我认为您可以使用 XmlSchemaInference 类。

    查看我的问题:

    XmlSchema inferred from an XML file - how to iterate through all the elements in the XSD?(我自己回答的)

    还有:

    Generating an XSD file with xsd.exe tool from an XML file with multiple namespaces

    【讨论】:

    • 感谢您的提示。我会看看它。也许我将使用 XamlType 来创建架构,而不是 XmlSchemaInterference。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多