PHP XML双引号

PHP XML双引号,php,xml,curl,Php,Xml,Curl,我尝试通过curlpost请求将包含xml内容的字符串发送到test.php <?xml version="1.0" encoding="utf-8"?> <SMS-InsRequest> <CLIENT user="test" pwd="demo" from="5555" /> <INSERTMSG text="Hi &quot;John&quot;. API test1 date: 24.07.2013"></IN

我尝试通过curlpost请求将包含xml内容的字符串发送到test.php

<?xml version="1.0" encoding="utf-8"?>
<SMS-InsRequest>
<CLIENT user="test" pwd="demo" from="5555" />
    <INSERTMSG text="Hi &quot;John&quot;. API test1 date: 24.07.2013"></INSERTMSG>
</SMS-InsRequest>
但我得到了一个错误:

Warning: simplexml_load_string(): <INSERTMSG text="Hi  in /var/www/html/xml/test.php on line 68

警告:simplexml\u load\u string():尝试simplexml\u load\u string(htmlentities($\u POST['xml\u request']);我还尝试了htmlspecialchars和HTMLEntity:Warning:simplexml_load_string():实体:第1行:解析器错误:应为开始标记,'这对我有效simplexml_load_string(html_Entity_decode($_POST['xml_request',ENT_引号))@弗拉基米尔·赫拉班<对我来说也很有用。问题是在通过浏览器运行“发送”时启动
Warning: simplexml_load_string(): <INSERTMSG text="Hi  in /var/www/html/xml/test.php on line 68