strange string on xml (…)

markzzz picture markzzz · Jun 15, 2011 · Viewed 26k times · Source

I see that some rss on xml have strange strings.

For example, ... is ….

What is this? And why? Its about CDATA?

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

Answer

Oded picture Oded · Jun 15, 2011

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.

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