I have an XML exported from another website that contains CDATA but this CDATA when reference back to the website is actually a URL link. I can parse this CData into PHP but it would be shown as text. Is there a way I can link this CData back to the website where the URL is? Or I need the URL to be in the CData to be parse instead?
—From other website—e.g http://www.otherwebsite.com
e.g Node from XML
<SongTitle><![CDATA[This is a song link at www.otherwebsite.com]]></SongTitle>
Many thanks.
Try preg_match_all when you have loaded the file into a string..
if you want to handle multiple occurances of CData….