国产gaysexchina男同gay,japanrcep老熟妇乱子伦视频,吃奶呻吟打开双腿做受动态图,成人色网站,国产av一区二区三区最新精品

XML Schema simpleContent 元素

2018-09-17 21:01 更新

XML Schema simpleContent 元素


XML Schema 參考手冊(cè) 完整 XML Schema 參考手冊(cè)

定義和用法

simpleContent 元素包含對(duì) complexType 元素(它以字符數(shù)據(jù)或 simpleType 元素為內(nèi)容)的擴(kuò)展或限制并且不包含任何元素。

元素信息

  • 父元素: complexType

語(yǔ)法

<simpleContent
id=ID
any attributes
>

(annotation?,(restriction|extension))

</simpleContent>

(? 符號(hào)聲明在 simpleContent 元素中該元素可出現(xiàn)零次或一次。)

屬性 描述
id 可選。規(guī)定該元素的唯一的 ID。
any?attributes 可選。規(guī)定帶有 non-schema 命名空間的任何其他屬性。

實(shí)例 1

這是一個(gè)僅包含文本的 XML 元素 (<shoesize>):

<shoesize country="france">35</shoesize>

下面的例子聲明了一個(gè)復(fù)雜類型 "shoesize",其內(nèi)容被定義為整數(shù)數(shù)據(jù)類型,并帶有一個(gè) country 屬性:

<xs:element name="shoesize">
??<xs:complexType>
????<xs:simpleContent>
??????<xs:extension base="xs:integer">
????????<xs:attribute name="country" type="xs:string" />
??????</xs:extension>
????</xs:simpleContent>
??</xs:complexType>
</xs:element>


XML Schema 參考手冊(cè) 完整 XML Schema 參考手冊(cè)
以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)