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

WBOY
Release: 2016-06-23 14:02:06
Original
774 people have browsed it

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




member
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template