Crazy XML learning notes (9) ----------- Schema built-in type

Source: Internet
Author: User
1. the Project address is github. comeclipsebuildship can download the project and install eclipse locally. you can also follow the following method 2. install eclipse online (1) Online installation address Guide: github. comeclipsebuildshipblobmasterdocsuserInstallation. the full text of md is as follows: E XML Schema built-in types:

Table 2. Simple Types Built In to XML Schema
Simple Type Examples (delimited by commas) Notes
String Confirm this is electric
NormalizedString Confirm this is electric See (3)
Token Confirm this is electric See (4)
Base64Binary GpM7
HexBinary 0FB7
Integer ...-1, 0, 1 ,... See (2)
PositiveInteger 1, 2 ,... See (2)
NegativeInteger ...-2,-1 See (2)
NonNegativeInteger 0, 1, 2 ,... See (2)
NonPositiveInteger ...-2,-1, 0 See (2)
Long -9223372036854775808,...-1, 0, 1,... 9223372036854775807 See (2)
UnsignedLong 0, 1,... 18446744073709551615 See (2)
Int -2147483648,...-1, 0, 1,... 2147483647 See (2)
UnsignedInt 0, 1,... 4294967295 See (2)
Short -32768,...-1, 0, 1,... 32767 See (2)
UnsignedShort 0, 1,... 65535 See (2)
Byte -128,...-1, 0, 1,... 127 See (2)
UnsignedByte 0, 1,... 255 See (2)
Decimal -1.23, 0,123.4, 1000.00 See (2)
Float -INF,-1E4,-0, 0, 12.78E-2, 12, INF, NaN Equivalent to single-precision 32-bit floating point, NaN is "not a number", see (2)
Double -INF,-1E4,-0, 0, 12.78E-2, 12, INF, NaN Equivalent to double-precision 64-bit floating point, see (2)
Boolean True, false, 1, 0
Duration P1Y2M3DT10H30M12.3S 1 year, 2 months, 3 days, 10 hours, 30 minutes, and 12.3 seconds
DateTime : 20: 00.000- May 31st 1999 at 1.20pm Eastern Standard Time which is 5 hours behind Co-Ordinated Universal Time, see (2)
Date 2017-05-31 See (2)
Time 13:20:00. 000, 13:20:00. 000- See (2)
GYear 1999 1999, see (2) (5)
GYearMonth 1999-02 The month of February 1999, regardless of the number of days, see (2) (5)
GMonth -- 05 May, see (2) (5)
GMonthDay -- 05-31 Every May 31st, see (2) (5)
GDay --- 31 The 31st day, see (2) (5)
Name ShipTo XML 1.0 Name type
QName Po: USAddress XML Namespace QName
NCName USAddress XML Namespace NCName, I. e. a QName without the prefix and colon
AnyURI #,#
Language En-GB, en-US, fr Valid values for xml: lang as defined in XML 1.0
ID XML 1.0 ID attribute type, see (1)
IDREF XML 1.0 IDREF attribute type, see (1)
IDREFS XML 1.0 IDREFS attribute type, see (1)
ENTITY XML 1.0 ENTITY attribute type, see (1)
ENTITIES XML 1.0 ENTITIES attribute type, see (1)
NOTATION XML 1.0 NOTATION attribute type, see (1)
NMTOKEN US, Br é sil XML 1.0 NMTOKEN attribute type, see (1)
NMTOKENS Us uk, Br é sil Canada Mexico XML 1.0 NMTOKENS attribute type, I. e. a whitespace separated list of NMTOKEN's, see (1)

Notes:

(1) To retain compatibility between XML Schema and XML 1.0 DTDs, the simple types ID, IDREF, IDREFS, ENTITY, ENTITIES, NOTATION, NMTOKEN, NMTOKENS shocould only be used in attributes.

(2) A value of this type can be represented by more than one lexical format, e.g. 100 and 1.0E2 are both valid float formats representing "one hundred ". however, rules have been established for this type that define a canonical lexical format, seeXML Schema Part 2.

(3) Newline, tab and carriage-return characters in a normalizedString type are converted to space characters before schema processing.

(4) As normalizedString, and adjacent space characters are collapsed to a single space character, and leading and trailing spaces are removed.

(5) The "g" prefix signals time periods in the Gregorian calendar.

The above is the crazy XML learning notes (9) ----------- Schema built-in type content. For more information, please follow the PHP Chinese network (www.php1.cn )!


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.