Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

strange string on xml (…)

Tags:

xml

cdata

rss

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

like image 725
markzzz Avatar asked Jun 15 '11 13:06

markzzz


1 Answers

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 - .

like image 141
Oded Avatar answered Sep 29 '22 18:09

Oded