首页 > 其他 > 详细

schema中属性声明

时间:2017-10-08 18:48:49      阅读:256      评论:0      收藏:0      [点我收藏+]

<attribute name="属性名"

  default="默认值"  fixed="固定值" use="option|required"  type="数据类型名">

e.g.

1 <xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema">
2   <xs:element name="name">
3     <xs:complexType>
4       <xs:element name="first" type="xs:string" />
5       <xs:attribute name="age" type="xs:integer" use="optional" />
6     </xs:complexType>
7   </xs:element>
8 </xs:schema>

 

schema中属性声明

原文:http://www.cnblogs.com/zhuxiang1633/p/7638031.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!