Which parts of an XML document are case-sensitive?

本文详细探讨了XML与HTML之间的显著区别,特别是关于元素类型名称、属性名称及值的大小写敏感性。XML的设计考虑到了非拉丁字母语言的使用,并解决了无大小写区分的脚本中存在的问题。
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> All of it, both markup and text. This is significantly different from HTML and most other SGML applications. It was done to allow markup in non-Latin-alphabet languages and to obviate problems with case-folding in scripts which are caseless. Element type names are case-sensitive: you must stick with whatever combination of upper- or lower-case you use to define them (either by first usage or in a DTD). So you can't say ...: upper- and lower-case must match; thus and are two different element types; For well-formed files with no DTD, the first occurrence of an element type name defines the casing; Attribute names are also case-sensitive, on a per-element basis: for example and in the same file exhibit two separate attributes, because the different casings of width and WIDTH distinguish them; Attribute values are also case-sensitive. CDATA values (eg HRef="MyFile.SGML") always have been, but ID and IDREF attributes are now case-sensitive as well; All entity names (Á), and your data content (text), are case-sensitive as always
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值