XSD a hanyan ta hanyan
- Previous page XSD <schema>
- Next page XSD a hanyan ta hanyan
XML Schema yana raba niyada XML cece.
niyada ceza:
niyada ceza:
niyada ceza:
kuma, “kawaiya tekun” ceza ceza ceza ceza raba yana yin kowace. Tekun yana raba koyi. Ita ce koyi ceza ceza cikakawa, ko yana raba koyi ceza ceza cikakawa, ko yana raba koyi ceza ceza cikakawa.
an raba, “kawaiya tekun” ceza ceza raba yana yin kowace. Tekun yana raba koyi. Ita ce koyi ceza ceza cikakawa, ko yana raba koyi ceza ceza cikakawa, ko yana raba koyi ceza ceza cikakawa.
niyada ceza:
niyada ceza:
<xs:element name="xxx" type="yyy"/>
hauko xxx yana suna macece, yyy yana suna irin lacinan data. XML Schema eni niwani koyi irin lacinan data.
koyi ceza ce:
- xs:string
- xs:decimal
- xs:integer
- xs:boolean
- xs:date
- xs:time
tasi:
niyada XML:
<lastname>Smith</lastname> <age>28</age> <dateborn>1980-03-27</dateborn>
niyada ceza:
<xs:element name="lastname" type="xs:string"/> <xs:element name="age" type="xs:integer"/> <xs:element name="dateborn" type="xs:date"/>
The default value and fixed value of simple elements
Simple elements can have specified default values or fixed values.
The default value will be automatically assigned to the element when no other value is specified.
In the following example, the default value is "red":
<xs:element name="color" type="xs:string" default="red"/>
The fixed value will also be automatically assigned to the element, and you cannot specify another value.
In the following example, the fixed value is "red":
<xs:element name="color" type="xs:string" fixed="red"/>
- Previous page XSD <schema>
- Next page XSD a hanyan ta hanyan