0

enter image description hereI am creating dynamic xml file to mysql data. In that, Mysql data so many special character and &,<>...etc are there.

If you display these all things in browser,there is no problem it will display properly.

Coming to the xml, If you display in xml it's showing errors.not displaying properly.In that content,so many special chars and unknown symbols are coming.If i display content in xml, i want to get pure content(human readable) same like as a html data.

can you please solve this problem...

user3445862
  • 59
  • 1
  • 9

1 Answers1

0

use cdata in your xml

<xmltag><![CDATA[]]></xmltag>

<xmltag><![CDATA[" and ends with "]]></xmltag>

this will help you to solve your problem

Sohail Yasmin
  • 498
  • 5
  • 16