XML注释和“ – ”

前端之家收集整理的这篇文章主要介绍了XML注释和“ – ”前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
<!-- 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.

原文链接:https://www.f2er.com/xml/293566.html

猜你在找的XML相关文章