XML 学哪个函数,手册上很多,只学simplexml够吗?

WBOY
Release: 2016-06-23 13:31:47
Original
931 people have browsed it

一般学习手册上的哪个类,


学哪个,一般学哪个, 都学有难度,还容易忘记,现在主流用哪个;


回复讨论(解决方案)

首选 DOM(DOMDocument)
他完整的描述了 XML 文档的解析和生成,缺点是占内存较大

其次是 SimpleXML
他要求你对待处理的 XML 文档有清晰的了解,属于 DOMDocument 的简化版
可与 DOMDocument 相互转换

可以都了解一下,看一下手册介绍。常用的应该是DOM , simplexml .

建议:
1.浏览一遍有哪些xml相关函数,函数的功能大概有哪些
2.实际运用的时候看需要什么功能的函数,再去仔细看相关函数
3.不建议专门去学习这些函数,效果是你意想不到的差

如果你现在不做XML解析功能的话,不建议去专门学习。
大致浏览下里面都能做些什么,心里有数就好了。
什么时候要用,再仔细查手册写代码。
首选DOM 和 simplexml . 

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!