加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

XML注释和“ – ”

发布时间:2020-12-16 01:52:36 所属栏目:百科 来源:网络整理
导读:!-- here is some comment -- ^ | what can be here apart from ''? XML似乎不喜欢’ – ‘里面的评论。我读某处’ – ‘切换一些模式内! ...事物,但是! - - - (偶数个–s)似乎也无效。如果是一些历史特色,什么是“亲”的一部分呢? (“contra”部分是不
<!-- here is some comment --
                            ^
                            |
                    what can be here apart from '>'?

XML似乎不喜欢’ – ‘里面的评论。我读某处’ – ‘切换一些模式内<! ...>事物,但是<! - - - > (偶数个–s)似乎也无效。如果是一些历史特色,什么是“亲”的一部分呢? (“contra”部分是不能在评论中)。

什么是复杂的评论处理的原因是不只是’ – >’结束注释并允许’ – ‘里面?

从标准文件:

http://www.w3.org/TR/REC-xml/#sec-comments

[Definition: Comments may appear anywhere in a document outside other
markup; in addition,they may appear within the document type
declaration at places allowed by the grammar. They are not part of the
document’s character data; an XML processor may,but need not,make it
possible for an application to retrieve the text of comments. For 07001,the string ” — ” (double-hyphen) must not occur within comments.] Parameter entity references must not be recognized within comments.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读