溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶(hù)服務(wù)條款》

XML中的Schema內(nèi)置類(lèi)型是什么

發(fā)布時(shí)間:2020-07-11 13:48:39 來(lái)源:億速云 閱讀:222 作者:Leah 欄目:編程語(yǔ)言

XML中的Schema內(nèi)置類(lèi)型是什么?相信很多沒(méi)有經(jīng)驗(yàn)的人對(duì)此束手無(wú)策,為此本文總結(jié)了問(wèn)題出現(xiàn)的原因和解決方法,通過(guò)這篇文章希望你能解決這個(gè)問(wèn)題。

                                                           XML Schema內(nèi)置類(lèi)型:

XML中的Schema內(nèi)置類(lèi)型是什么

XML中的Schema內(nèi)置類(lèi)型是什么

XML中的Schema內(nèi)置類(lèi)型是什么

Schema內(nèi)置類(lèi)型說(shuō)明

Table 2. Simple Types Built In to XML Schema
Simple TypeExamples (delimited by commas)Notes
stringConfirm this is electric
normalizedStringConfirm this is electricsee (3)
tokenConfirm this is electricsee (4)
base64BinaryGpM7
hexBinary0FB7
integer...-1, 0, 1, ...see (2)
positiveInteger1, 2, ...see (2)
negativeInteger... -2, -1see (2)
nonNegativeInteger0, 1, 2, ...see (2)
nonPositiveInteger... -2, -1, 0see (2)
long-9223372036854775808, ... -1, 0, 1, ... 9223372036854775807see (2)
unsignedLong0, 1, ... 18446744073709551615see (2)
int-2147483648, ... -1, 0, 1, ... 2147483647see (2)
unsignedInt0, 1, ...4294967295see (2)
short-32768, ... -1, 0, 1, ... 32767see (2)
unsignedShort0, 1, ... 65535see (2)
byte-128, ...-1, 0, 1, ... 127see (2)
unsignedByte0, 1, ... 255see (2)
decimal-1.23, 0, 123.4, 1000.00see (2)
float-INF, -1E4, -0, 0, 12.78E-2, 12, INF, NaNequivalent to single-precision 32-bit floating point, NaN is "not a number", see (2)
double-INF, -1E4, -0, 0, 12.78E-2, 12, INF, NaNequivalent to double-precision 64-bit floating point, see (2)
booleantrue, false, 1, 0
durationP1Y2M3DT10H30M12.3S1 year, 2 months, 3 days, 10 hours, 30 minutes, and 12.3 seconds
dateTime1999-05-31T13:20:00.000-05:00May 31st 1999 at 1.20pm Eastern Standard Time which is 5 hours behind Co-Ordinated Universal Time, see (2)
date1999-05-31see (2)
time13:20:00.000, 13:20:00.000-05:00see (2)
gYear19991999, see (2) (5)
gYearMonth1999-02the month of February 1999, regardless of the number of days, see (2) (5)
gMonth--05May, see (2) (5)
gMonthDay--05-31every May 31st, see (2) (5)
gDay---31the 31st day, see (2) (5)
NameshipToXML 1.0 Name type
QNamepo:USAddressXML Namespace QName
NCNameUSAddressXML Namespace NCName, i.e. a QName without the prefix and colon
anyURIhttp://www.php.cn/,http://www.php.cn/
languageen-GB, en-US, frvalid values for xml:lang as defined in XML 1.0
IDXML 1.0 ID attribute type, see (1)
IDREFXML 1.0 IDREF attribute type, see (1)
IDREFSXML 1.0 IDREFS attribute type, see (1)
ENTITYXML 1.0 ENTITY attribute type, see (1)
ENTITIESXML 1.0 ENTITIES attribute type, see (1)
NOTATIONXML 1.0 NOTATION attribute type, see (1)
NMTOKENUS,BrésilXML 1.0 NMTOKEN attribute type, see (1)
NMTOKENSUS UK,Brésil Canada MexiqueXML 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 should 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.

看完上述內(nèi)容,你們掌握XML中的Schema內(nèi)置類(lèi)型是什么的方法了嗎?如果還想學(xué)到更多技能或想了解更多相關(guān)內(nèi)容,歡迎關(guān)注億速云行業(yè)資訊頻道,感謝各位的閱讀!

向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI