盾怪网教程:是一个免费提供流行杀毒软件教程、在线学习分享的学习平台!

DOMXML函数笔记

时间:2024/11/28作者:未知来源:盾怪网教程人气:

[摘要]<?php/*** DOMXML函数笔记* 连接php_domxml.dll后* 用get_defined_functions()得到domxml支持函数** 目前domxml不支持非iso-...

<?php
/**
* DOMXML函数笔记
* 连接php_domxml.dll后
* 用get_defined_functions()得到domxml支持函数
*
* 目前domxml不支持非iso-8859-1以外的语言声明
* <?xml version="1.0" encoding="iso-8859-1"?> 支持
* <?xml version="1.0" encoding="gb2312"?> 不支持
* <?xml version="1.0"?> 因此需要改造成这样,可能需要
* utf8_encode() utf8_decode() 函数进行处理
*
* 函数列表
* string domxml_version(void)  返回domxml的版本号
* object xmldoc(string str)    从字符串创建XML的Domdocument对象
* object xmldocfile(string filename)   从文件创建XML的Domdocument对象
* object xmltree(string str)   解析xml文档,返回树状结构,不能用domxml函数改变
* resource domxml_add_root(resource doc,string name)  添加根节点
* string domxml_dumpmem(resource doc)  将domxml对象转化为XML串。这个函数有一个问题,他会在第一个汉字前面加一个扩展ascii字符,形如&#nnn;
* domxml_node_attributes
* domxml_elem_get_attribute
* domxml_elem_set_attribute
* array domxml_node_children(object doc

关键词:DOMXML函数笔记




Copyright © 2012-2018 盾怪网教程(http://www.dunguai.com) .All Rights Reserved 网站地图 友情链接

免责声明:本站资源均来自互联网收集 如有侵犯到您利益的地方请及时联系管理删除,敬请见谅!

QQ:1006262270   邮箱:kfyvi376850063@126.com   手机版