描述很大时无法解析xml数据

时间:2017-08-25 04:17:22

标签: php xml xml-parsing zoho

在我的项目脚本中,它总是运行顺畅,但只有在描述如此时才会显示“无法解析错误”。或者如果有大量的特殊字符也会出现这样的错误。我已经处理过基本的特殊字符了。如果你能告诉我这个描述的问题,那将是很好的,因为它总是给出这个错误。

$description = "hi every one
now i will tell you what i want exactly
i want Development script for upload and sharing files like mediafire and mega 
i will tell you about every details what i need 
the websit or script will be dedicated to upload files, Whether been videos or photos or psd or pdf or mp3 every thing, i want members system in       the script, will be there normal members and premium members, premium members will be have more features more than normal member, you can see difference between them in this picture 
there are other things i want it in script 
like Control Panel for members and Control Panel  for admin 
contact us page, terms page & other pages like that 
linking the website in my account on Paypal to receive the money on him
this is the important things so i want tell me how much exactly will cost script like this"


<Leads>
<row no="1">
<FL val="Name">'XYZ'</FL>
<FL val="Email">'XYZ@ABC.COM'</FL>
<FL val="Country">'NEW JERSEY'</FL>
<FL val="Description">'.$description.'</FL>
</row>
</Leads>

1 个答案:

答案 0 :(得分:1)

在您的脚本中使用CDATA。

<FL val="Description"><![CDATA['.$description.']]]]></FL>