Jump to content

ATOM Feed Help


craigy72

Recommended Posts

Hello Guys.

 

Im trying to create an ATOM feed from my mssql database. Within the URL's of the data there are certain characters that XML doesn't like, therefore I'm trying to escape them using CDATA.

 

CODE:

<?php echo "<link href =<![CDATA[\""/$result['url']."\"]]>/>";?

 

OUTPUT:

<link href=<![CDATA["http://www.credit-suisse.com/news/en/media_release.jsp?ns=40767"]]>/>

 

For some unknown reason to me the XML is not escaping this code, I've manged to get it to work on the <summary> </summary> tags but not the <link> </link> tabs.

 

Can anyone help me?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/105391-atom-feed-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.