XSD మిశ్రమ డేటా రకం
- పూర్వ పేజీ XSD నమూనా డేటా
- పూర్వ పేజీ తదుపరి పేజీ
Other miscellaneous data types include logical, base64Binary, hexadecimal, floating point, double precision, anyURI, anyURI, and NOTATION.
Boolean Data Type
Logical data type is used to specify true or false values.
Here is an example of a logical declaration in a scheme:
<xs:attribute name="disabled" type="xs:boolean"/>
The elements in the document should look like this:
<prize disabled="true">999</prize>
Note:Valid boolean values are true, false, 1 (representing true) and 0 (representing false).
Binary Data Types
Binary data types are used to express data in binary form.
We can use two types of binary data:
- base64Binary (Binary data encoded in Base64)
- hexBinary (Binary data encoded in hexadecimal)
Here is an example of a hexBinary declaration in a scheme:
<xs:element name="blobsrc" type="xs:hexBinary"/>
AnyURI Data Type
The anyURI data type is used to specify URI.
Here is an example of an anyURI declaration in a scheme:
<xs:attribute name="src" type="xs:anyURI"/>
The elements in the document should look like this:
<pic src="http://www.codew3c.com/images/smiley.gif" />
Note:If a URI contains spaces, replace them with %20.
Miscellaneous Data Types
名称 | 描述 |
---|---|
anyURI | |
base64Binary | |
boolean | |
double | |
float | |
hexBinary | |
NOTATION | |
QName |
对杂项数据类型的限定(Restriction)
可与杂项数据类型一同使用的限定:
- enumeration (బౌల్ డేటా రకం ఈ పరిమితిని ఉపయోగించలేదు*)
- length (బౌల్ డేటా రకం ఈ పరిమితిని ఉపయోగించలేదు)
- maxLength (బౌల్ డేటా రకం ఈ పరిమితిని ఉపయోగించలేదు)
- minLength (బౌల్ డేటా రకం ఈ పరిమితిని ఉపయోగించలేదు)
- pattern
- whiteSpace
*పరిచయం కురించి ట్రాన్స్లేటర్ నోట్స్:కన్స్ట్రాయంట్ అని పిలుస్తారు。
- పూర్వ పేజీ XSD నమూనా డేటా
- పూర్వ పేజీ తదుపరి పేజీ