如题,如何能把dfadsfdsfdsfdsfdsf 里面的标签在经过simplexml_load_string加载后仍能保存下来。
关注
码龄 粉丝数 原力等级 --
- 被采纳
- 被点赞
- 采纳率
我用simplexml_load_string加载一个xml字符串时
收起
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 微信扫一扫点击复制链接分享
- 邀请回答
- 编辑 收藏 删除 结题
- 收藏 举报
追加酬金 (90%的用户在追加酬金后获得了解决方案)
当前问题酬金
¥ 0 (可追加 ¥500)
支付方式
扫码支付
加载中...
0条回答
报告相同问题?
提交
- 2016-12-15 03:32回答 1 已采纳 You should encode in UTF-8 the response of google suggestion query before trying to parse it. $en
- 2014-04-16 16:02回答 2 已采纳 Need to stripslashes(): $string = stripslashes($_POST['xml']); if($xml_test = simplexml_load_str
- 2014-07-18 11:04回答 1 已采纳 By wrapping the contents in a CDATA block, you can make the XML parser (PHP) ignore the contents.
- 2021-03-22 21:55weixin_39676021的博客 找了很多方法,终于知道在php用simplexml_load_string()解析xml成数组的时候,字符串中不要包含一些特殊字符,我这边的xml中包含了&符号,于是导致的解析失败。具体有哪些特殊符号不可以,我没有去一一校验。...
- 2015-10-02 08:37回答 2 已采纳 It's just 2 different ways of doing it, the only difference is that the __construct new SimpleXMLE
- 2014-01-09 22:54回答 1 已采纳 SimpleXML is a chained object. It's deceptive because you can do something like echo (string)$xml
- 2015-03-05 08:43回答 2 已采纳 SimpleXML is simple for a reason. When echoing an element, it automatically converts the object to
- 2021-04-26 15:14东火女的博客 1.2 问题剖析 __main函数是C/C++运行时库的一个函数,嵌入式系统在进入应用主程序之前必须有一个初始化的过程,使用__m ... Redis数据类型及常用命名总结 Redis数据类型: Redis支持五种数据类型:string(字符串),hash...
- 2015-04-02 21:44回答 1 已采纳 You'd get those attributes by traversing properly and using the attributes() method. $newxml = si
- 2016-03-23 14:48回答 1 已采纳 I have a simple answer for you: don't convert XML to an array. SimpleXML has a really useful API f
- 2013-09-03 11:06回答 1 已采纳 Don't forget that is another use of a newline character. Try something like this: <? $result
- 2021-03-24 08:45董振业的博客 PHP simplexml_load_string() 函数实例转换形式良好的 XML 字符串为 SimpleXMLElement 对象,然后输出对象的键和元素:$note=<<ToveJaniReminderXML;$xml=simplexml_load_string($note);print_r($xml);?>...
- 2012-06-26 23:18回答 1 已采纳 The string definition is bad use this $xml = "<xmlrequest> <details> <emailadd
- 2021-04-21 02:26透明流动虚无的博客 1、如下代码报错:$xml = " < ![CDATA[toUser] ]> < ![CDATA[fromUser] ]> 1348831860 < ![CDATA[text] ]> <...[CDATA[this is a test] ]>...$obj=simplexml_load_string($x...
- 2021-04-19 01:51凡人鲜草的博客 问题/*** 通过节点路径返回字符串的某个节点值* $res_data——XML 格式字符串* 返回节点参数*/function getDataForXML($res_data, $node){$xml = simplexml_load_string($res_data);$result = $xml->xpath($node)...
- 2021-04-19 01:51暴躁老哥锅得钢的博客 我使用xml格式的cURL检索一些...$data = simplexml_load_string($xml);print_r($data);//out put - SimpleXMLElement Object ( )如果我尝试 – print_r($xml);并查看页面源我明白了xmlns:ns2="http://www.example.c...
- 2022-11-09 16:09子夜&?的博客 /这里的$fromUsername就是加了引号才在发送curl请求时被识别。//获取发送方帐号(OpenID)$fromUsername = $postObj->FromUserName;//获取发送方帐号(OpenID)$postStr = file_get_contents('php://input');
- 2021-04-30 05:09是佐罗而非索隆的博客 simplexml_load_string(): Entity: line 2: parser error : Input is not proper UTF-8, indicate encoding !出现此错误的原因是:json_decode的坑 仅仅支持utf-8编码的字符进行转码处理$str字符串把$beforeEncode...
- 2021-01-20 08:02转换形式良好的 XML 字符串为 SimpleXMLElement 对象,然后输出对象的键和元素: <?php $note=<<<XML <note>Tove <from>Jani <heading>Reminder <body>Don't forget me this weekend!</body&...
- 2019-06-01 18:36思维小刀的博客 simplexml_load_string() 函数把 XML 字符串载入对象中。 2.例子 <?php $xmlstring = <<<XML <?xml version="1.0" encoding="ISO-8859-1"?> <note> <to>George</to> <...
- 没有解决我的问题, 去提问
悬赏问题
- ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
- ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
- ¥20 有关区间dp的问题求解
- ¥15 多电路系统共用电源的串扰问题
- ¥15 slam rangenet++配置
- ¥15 有没有研究水声通信方面的帮我改俩matlab代码
- ¥15 ubuntu子系统密码忘记
- ¥15 保护模式-系统加载-段寄存器
- ¥15 电脑桌面设定一个区域禁止鼠标操作
- ¥15 求NPF226060磁芯的详细资料