xml 上的奇怪字符串 (…)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6358688/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-06 14:48:35  来源:igfitidea点击:

strange string on xml (…)

xmlrsscdata

提问by markzzz

I see that some rsson xmlhave strange strings.

我看到一些rssxml有奇怪的字符串。

For example, ...is ….

例如,...…

What is this? And why? Its about CDATA?

这是什么?为什么?它的约CDATA

On my web application (C#), reading rss, I usually do myString.Replace("…", "..."): not sure if it's the best strategy

在我的 Web 应用程序 (C#) 上,阅读 rss,我通常会这样做myString.Replace("…", "..."):不确定这是否是最佳策略

回答by Oded

These are numeric character references.

这些是数字字符引用

A numeric character reference (NCR) is a common markup construct used in SGML and other SGML-related markup languages such as HTML and XML. It consists of a short sequence of characters that, in turn, represent a single character from the Universal Character Set (UCS) of Unicode.

数字字符引用 (NCR) 是 SGML 和其他与 SGML 相关的标记语言(如 HTML 和 XML)中使用的常见标记构造。它由一小段字符组成,而这些字符又代表 Unicode 的通用字符集 (UCS) 中的单个字符。

In this case, the numeric character reference for the ellipsis character- .

在这种情况下,省略号字符的数字字符引用-

回答by Bala R

From this reference pageit's horizontal ellipsis.

从这个参考页面它是水平省略号