有谁会写xsd。。。。。。。。。。。。帮帮小菜吧!!!。。。。。。。。
<xs:element name="OtherService" >
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
我写的一个节点的架构要求OtherService节点为数字类型且大于等于0小于等于1且可以为空
问题是以上代码可以实现大于等于0小于等于1 但是做不到可以为空
怎么写可以实现那???? --------------------编程问答--------------------
<xs:element name="ReferralDate" type="xs:dateTime "/>
还有日期类型 也存在这样的问题
请高手做答????? --------------------编程问答-------------------- 顶一下。 --------------------编程问答-------------------- 自己顶 --------------------编程问答-------------------- 在顶。。。 --------------------编程问答-------------------- xsd确实没用过,帮顶一下!
顺便找了一篇文章
http://degree38.javaeye.com/blog/560680 --------------------编程问答-------------------- <xs:element name="OtherService" >
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="1"/>
<xs:pattern value= "^([01])"/>
</xs:restriction>
</xs:simpleType>
</xs:element> --------------------编程问答--------------------
谢谢
那篇文章 我看过了 呵呵
那个是关于字符类型的
没有关于int类型的 --------------------编程问答--------------------
--------------------编程问答-------------------- 绑顶吧 --------------------编程问答--------------------
<xs:element name="OtherService" >
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:pattern value= "^([01])"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
请细说 --------------------编程问答-------------------- 谁能帮帮我
--------------------编程问答-------------------- 你可以先写xml xml比较简单 在根据xml自动让它生成xsd文件。 --------------------编程问答-------------------- xsd不懂。
顶顶
补充:.NET技术 , C#