开发者

Attribute and Sequence

开发者 https://www.devze.com 2023-03-27 03:30 出处:网络
Can an \"attribute\" be part of a sequence. Also, does this have to change to complex type from simple?

Can an "attribute" be part of a sequence. Also, does this have to change to complex type from simple?

开发者_开发问答<xs:simpleType name="t_name">
  <xs:attribute name="a_name" >
     <xs:simpleType>
        <xs:restriction base="xs:hexBinary" >
           <xs:length value="4”/>
       </xs:restriction>
     </xs:simpleType>
   </xs:attribute>
</xs:simpleType>

Thanks, Mohmd.


Only elements are applicable for sequencing. Attributes can not have predefined or mandated order.

0

精彩评论

暂无评论...
验证码 换一张
取 消