常見XSD問題

 

<ui

xs:elementname="status">spa

  <ip

xs:complexType>element

    <string

xs:sequence>ast

    <require

xs:elementname="created_at"type="xs:string" />process

    <require

xs:elementname="id"type="xs:unsignedLong" />co

    <

xs:elementname="text"type="xs:string" />

    <

xs:anyminOccurs="0"maxOccurs="unbounded"processContents="skip"/>

    </

xs:sequence>

  </

xs:complexType>

</

xs:element>

 

<xs:all>表示子節點順序能夠任意
<xs:all>
      <xs:element name="firstname" type="xs:string"/>
      <xs:element name="lastname" type="xs:string"/>
</xs:all>

 

<xs:attributename="type"type="xs:string"use="required" />

<xs:anyAttributeprocessContents="skip"></xs:anyAttribute>

相關文章
相關標籤/搜索