Error with ampersand in XML in Zoho API

本秂侑毒 提交于 2019-12-02 05:29:02

Finally found a solution: strings containing a special characters must be contained in CDATA sections AND those special characters need to be percent encoded.

So for the example above, this gives:

<Leads>
    <row no="1">
        <FL val="Lead Owner">me@example.com</FL>
        <FL val="Company"><![CDATA[Marks %26 Spencer]]></FL>
    </row>
</Leads>

Note that the value Marks%20%26%20Spencer is also OK for the API.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!