The news company sent another rss news feed.
They sent a link to rss, where CDATA used.
How to read this CDATA ?
- rss file

  • 2
    The link is not working. In addition, I would like to clarify with what means do you plan to read this rss (programming language, library, etc.)? - Streletz
  • @Streletz php ("2 characters needed", this is what StackOverflow asks for.) - I_CaR

1 answer 1

To parse an RSS file, it is convenient to use the function simplexml_load_file() , in order to access the elements inside <![CDATA[ , it should be passed as the third parameter to the constant LIBXML_NOCDATA , which instructs to convert these elements into text

 <?php $url = 'http://krsk.sibnovosti.ru/news/rss_all.xml'; $xml = simplexml_load_file($url, "SimpleXMLElement", LIBXML_NOCDATA); echo "<pre>"; print_r($xml);