dedecms织梦内容管理系统    
首页 | java | C/C++ | PHP | 操作系统 | ajax | 脚本编程 | 安全技术 | 本站下载页 | flex | CRM | 专题 | QQ群 | 测试中心 | 会员中心 | 积分规则
  当前位置:主页>PHP>php技术资料>文章内容
PHP中的DOM XML函数
来源:未知     作者:    
 

DOM functions
These functions are only available if PHP was configured with --with-dom=[DIR], using the GNOME xml library. You will need at least lib-2.0.0 (the beta version will not work). These functions have been added in 4.

This module defines the following constants:

Table 1. constants

Constant Value Description
_ELEMENT_NODE 1
_ATTRIBUTE_NODE 2
_TEXT_NODE 3
_CDATA_SECTION_NODE 4
_ENTITY_REF_NODE 5
_ENTITY_NODE 6
_PI_NODE 7
_COMMENT_NODE 8
_DOCUMENT_NODE 9
_DOCUMENT_TYPE_NODE 10
_DOCUMENT_FRAG_NODE 11
_NOTATION_NODE 12
_GLOBAL_NAMESPACE 1
_LOCAL_NAMESPACE 2

This module defines a number of classes. The DOM XML functions return a parsed tree of the document with each node being an object belonging to one of these classes.

doc
(4 >= 4.0b4)

xmldoc -- Creates a DOM object of an document
Description

object doc (string str)


The function parses the document in str and returns an object of class "Dom document", having the properties "doc" (resource), "version" (string) and "type" (long).

docfile
(4 >= 4.0b4)

xmldocfile -- Creates a DOM object from file
Description

object docfile (string filename)


The function parses the document in the file named filename and returns an object of class "Dom document", having the properties "doc" (resource), "version" (string).

tree
(4 >= 4.0b4)

tree -- Creates a tree of objects from document
Description

object tree (string str)


The function parses the document in str and returns a tree objects as the parsed document.

 

 

上一篇:PHP4实际应用经验篇(6)   下一篇:使用php动态生成gif时遇到的问题和解决办法
[收藏] [推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
用户名: 新注册) 密码: 匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论
  热点文章
·通过对PHP服务器端特性的配置加
·php与mysql三日通
·AJAX技术在PHP开发中的简单应用
·大家所使用的PHP开发环境
·PHP缓存的实现
·针对PHP新手总结的PHP基础知识
·一个简单实现多条件查询的例子
·PHP串行化变量和序列化对象
·PHP表单
·推荐阅读:php技术生成静态页面
·php实用函数
·php生成随机数
  相关文章
·PHP4实际应用经验篇(6)
·使用php动态生成gif时遇到的问题
·PHP4实际应用经验篇(5)
·用PHP连mysql和oracle数据库性能
·PHP4实际应用经验篇(4)
·浅谈Windows下 PHP4.0与oracle 8
·PHP4实际应用经验篇(3)
·用PHP调用数据库的存贮过程
·PHP4实际应用经验篇(2)
·用php与mysql的电子贺卡程序
·PHP4实际应用经验篇(1)
·挑战最棒的留言本的源码(一)
  相关信息
copy right @ 百家拳软件项目研究室 2007 辽ICP备07011763