How to fix XML special character error

Programming for Search Engines 101. An area for avid PHP and .NET developers to chat about Programming techniques and how to make better use of search engines.

Moderator: Moderators

How to fix XML special character error

Postby silvester » Wed Apr 25, 2012 12:19 am

While creating an xml file to display data in the front end using ajax request or pulling blog posts from rise to the top or Wyselabs forums and creating an xml file to display the details ,if the xml field values have some special characters then it will surely through error.
To fix this issue we can add

<![CDATA[value]]>

ex:<title><![CDATA[Internet marketing & social media.]]></title>
silvester
 
Posts: 89
Joined: Mon Nov 10, 2008 12:59 am

Return to Programming

Who is online

Users browsing this forum: No registered users and 7 guests