关于xml解析

WBOY
WBOYOriginal
2016-06-23 13:52:21882browse

xml格式如下:

0获取内容成功1407549867875安装包下载 2013-09-06 12:39:31

适用于“数字证书”或“CI证书”用户   关于xml解析


 


    说明:XXXXX??CA智能终端。关于xml解析


]]>

说明,一般的xml格式我用simplexml_load_string(xml)都可以解析出来。。。
可是当xml数据里面有遇到 哪位大哥知道如何解板xml得到


回复讨论(解决方案)

simplexml_load_string($xml, 'SimpleXMLElement', LIBXML_NOCDATA)

第三???用 LIBXML_NOCDATA
?考: http://php.net/manual/en/libxml.constants.php

谢谢楼上两位!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn