XML Schema内置类型:
Schema内置类型说明
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 | 1999-05-31T13:20:00.000-05:00 | May 31st 1999 at 1.20pm Eastern Standard Time which is 5 hours behind Co-Ordinated Universal Time, see (2) |
date | 1999-05-31 | see (2) |
time | 13:20:00.000, 13:20:00.000-05:00 | 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 | http://www.php.cn/,http://www.php.cn/ | |
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 Mexique | 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 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. |
以上就是疯狂XML学习笔记(9)-------------Schema内置类型的内容,更多相关内容请关注PHP中文网(www.php.cn)!

RSS文档的工作原理是通过XML文件发布内容更新,用户通过RSS阅读器订阅并接收通知。1.内容发布者创建并更新RSS文档。2.RSS阅读器定期访问并解析XML文件。3.用户浏览和阅读更新内容。使用示例:订阅TechCrunch的RSS源,只需复制链接到RSS阅读器中即可。

使用XML构建RSSfeed的步骤如下:1.创建根元素并设置版本;2.添加channel元素及其基本信息;3.添加条目(item)元素,包括标题、链接和描述;4.转换XML结构为字符串并输出。通过这些步骤,你可以从零开始创建一个有效的RSSfeed,并通过添加额外的元素如发布日期和作者信息来增强其功能。

创建RSS文档的步骤如下:1.使用XML格式编写,根元素为,包含元素。2.在内添加、、等元素描述频道信息。3.添加元素,每个代表一个内容条目,包含、、、等。4.可选地添加和元素,丰富内容。5.确保XML格式正确,使用在线工具验证,优化性能并保持内容更新。

XML在RSS中的核心作用是提供一种标准化和灵活的数据格式。1.XML的结构和标记语言特性使其适合数据交换和存储。2.RSS利用XML创建标准化格式,方便内容共享。3.XML在RSS中的应用包括定义feed内容的元素,如标题和发布日期。4.优势包括标准化和可扩展性,挑战包括文件冗长和严格语法要求。5.最佳实践包括验证XML有效性、保持简洁、使用CDATA和定期更新。

rssfeedsarexmldocuments usedforcontentAggregation and distribution.totransformthemintoreadableContent:1)parsethethexmlusinglibrarieslibrariesliblarieslikeparserinparserinpython.2)andledifferentifferentrssssssssssssssssssssssssssssssssssssssssssssssersions andpotentionparsingrorS.3)

JSONFeed是一种基于JSON的RSS替代方案,其优势在于简洁性和易用性。1)JSONFeed使用JSON格式,易于生成和解析。2)它支持动态生成,适用于现代Web开发。3)使用JSONFeed可以提升内容管理效率和用户体验。

如何构建、验证和发布RSSfeeds?1.构建:使用Python脚本生成RSSfeed,包含标题、链接、描述和发布日期。2.验证:使用FeedValidator.org或Python脚本检查RSSfeed是否符合RSS2.0标准。3.发布:将RSS文件上传到服务器,或使用Flask动态生成并发布RSSfeed。通过这些步骤,你可以有效管理和分享内容。

确保XML/RSSfeeds安全性的方法包括:1.数据验证,2.加密传输,3.访问控制,4.日志和监控。这些措施通过网络安全协议、数据加密算法和访问控制机制来保护数据的完整性和机密性。


热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

AI Hentai Generator
免费生成ai无尽的。

热门文章

热工具

SecLists
SecLists是最终安全测试人员的伙伴。它是一个包含各种类型列表的集合,这些列表在安全评估过程中经常使用,都在一个地方。SecLists通过方便地提供安全测试人员可能需要的所有列表,帮助提高安全测试的效率和生产力。列表类型包括用户名、密码、URL、模糊测试有效载荷、敏感数据模式、Web shell等等。测试人员只需将此存储库拉到新的测试机上,他就可以访问到所需的每种类型的列表。

Atom编辑器mac版下载
最流行的的开源编辑器

DVWA
Damn Vulnerable Web App (DVWA) 是一个PHP/MySQL的Web应用程序,非常容易受到攻击。它的主要目标是成为安全专业人员在合法环境中测试自己的技能和工具的辅助工具,帮助Web开发人员更好地理解保护Web应用程序的过程,并帮助教师/学生在课堂环境中教授/学习Web应用程序安全。DVWA的目标是通过简单直接的界面练习一些最常见的Web漏洞,难度各不相同。请注意,该软件中

mPDF
mPDF是一个PHP库,可以从UTF-8编码的HTML生成PDF文件。原作者Ian Back编写mPDF以从他的网站上“即时”输出PDF文件,并处理不同的语言。与原始脚本如HTML2FPDF相比,它的速度较慢,并且在使用Unicode字体时生成的文件较大,但支持CSS样式等,并进行了大量增强。支持几乎所有语言,包括RTL(阿拉伯语和希伯来语)和CJK(中日韩)。支持嵌套的块级元素(如P、DIV),

适用于 Eclipse 的 SAP NetWeaver 服务器适配器
将Eclipse与SAP NetWeaver应用服务器集成。