A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

 找回密码
 加入黑马

QQ登录

只需一步,快速开始

© 不可言 中级黑马   /  2014-7-18 10:35  /  598 人查看  /  0 人回复  /   0 人收藏 转载请遵从CC协议 禁止商业使用本文

本帖最后由 不可言 于 2014-7-18 19:56 编辑

约束代码如下:

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  3.                                           targetNamespace="http://www.itheima.com"
  4.                                           elementFormDefault="qualified">
  5.         <xs:element name='书架' >
  6.                 <xs:complexType>
  7.                         <xs:sequence maxOccurs='unbounded' >
  8.                                 <xs:element name='书' >
  9.                                         <xs:complexType>
  10.                                                 <xs:sequence>
  11.                                                         <xs:element name='书名' type='xs:string' />
  12.                                                         <xs:element name='作者' type='xs:string' />
  13.                                                         <xs:element name='售价' type='xs:string' />
  14.                                                 </xs:sequence>
  15.                                         </xs:complexType>
  16.                                 </xs:element>
  17.                         </xs:sequence>
  18.                 </xs:complexType>
  19.         </xs:element>
  20. </xs:schema>
复制代码

0 个回复

您需要登录后才可以回帖 登录 | 加入黑马