Home  >  Article  >  Backend Development  >  请教PHP怎样将XML文件读入JSON格式数据,并,JS怎样将该格式的数据进行解析

请教PHP怎样将XML文件读入JSON格式数据,并,JS怎样将该格式的数据进行解析

WBOY
WBOYOriginal
2016-06-23 14:02:06676browse

是这么个情况,现在我需要用JQUERY的AJAX向PHP文件提出请求,获取一个XML文件的内容,该内容需要装载成JSON数据下发
因对PHP不熟悉,求该功能以及JS接收到该JSON数据后如何解析的代码,借以参考,越详细越好,谢谢了!
以下是该XML文件的内容




member
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
Previous article:弹出层Next article:一个字符串难题~