求一个验证xml的schema的写法 <person> <personinfo> <name></name> <father> <personinfo> <name></name> <father> …… </father> </personinfo> </father> </personinfo></person>就是想用一个schema验证子孙N代的校验,看了相关资料,嵌套没搞明白。呵呵,希望可以给一个完善一点的xsd,有相关的说明更好了。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 xml中一個元素属性又有值的schema的驗證寫法. 如下: 例如:下面的元素的寫法: <price days="12">5500</price>schema的驗證寫法: <xs:element name="price" maxOccurs="2"> <xs:complexType mixed="true"> <xs:attribute name="days"> <xs:simpleType> <xs:restriction base="xs:integer"></xs:restriction> </xs:simpleType> </xs:attribute> </xs:complexType> </xs:element> winform窗体的Hide() 和 this.Visible=false 有什么区别? 类中可否调用非静态方法,如何调用呢? 年后准备开发erp Remoting 注册事件 异步回调 客户端和服务器端不在同一台机器 listview与XML问题 用C#编写一个判断用户输入的一组数字中最大的数 怎么随机抽取数据库里的记录 聊天机器人的开发 Console.WriteLine中{0}处理 ListManager怎么声明命名空间? C#WinForm弹出窗口问题 C#winform 弹出自定义对话框?
<xs:complexType mixed="true">
<xs:attribute name="days">
<xs:simpleType>
<xs:restriction base="xs:integer"></xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>