xsd架构中的自定义属性 [英] Custom Attributes in an xsd Schema

查看:113
本文介绍了xsd架构中的自定义属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为某些特定需求创建xml模式,但我不确定如何处理的事情是我希望能够在xsd中拥有自己的自定义属性(或其他内容),模式本身.

我想要这样的东西:

I''m trying to make an xml schema for some specific needs, the thing that I''m not sure how to handle is that I want to be able to have own custom attributes (or something) in the xsd-schema itself.

Something like this is what I want:

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <xsd:element name="Book">
      <xsd:complextype>
         <xsd:sequence>
            <xsd:element name="Author" type="xsd:string" display="true" owner="Mich" />
            <xsd:element name="Pages" type="xsd:int" />
         </xsd:sequence>
      </xsd:complextype>
   </xsd:element>
</xsd:schema>





Is there a way to store this kind of information (display="true" owner="Mich") in the schema using c#?

推荐答案

这似乎很像您还有其他问题.
以编程方式(c#)创建xml模式 [
This seems a lot like your other question.
Programmatically (c#) create xml schema[^]

Please don''t repost.


这篇关于xsd架构中的自定义属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆