资讯   |   开发   |   选机中心   |   产品大全 | IBM | 惠普 | 联想 | 戴尔 | 苹果 | 神舟
更多: | 华硕 | 明基 | 方正 | 紫光 | TCL | 夏新 | 联宝 | 宏碁 | 七喜 | 长城 | 清华同方 | 海尔 | 三星 | 东芝 | 索尼 | 富士通 | LG | 技术 | ddnoon
当前位置:笔记本 > 编程开发 >
Advertisement
文章正文

PHP中的DOMXML函数--可惜没有例子--等有空到老外那边[偷]来_编程

类型:转载   责任编辑:asp.net   日期:2007/05/23


热门软件下载:


   
  • 一个基于mysql的登陆验证程序(二) 
  • 新闻发布系统(例子)二dbconn 
  • 使用PHPLIB进行Session的管理和认证(转载) 
  • 用PHP3作树型目录(4) 
  • UltraEdit支持php文档特殊显示的配置(基本的) 
  • 在Linux下访问MSSQLServer数据库(转载) 
  • 给WIN98下使用APACHE的弟兄们的一个好东西:ApacheManager,不会再有那个DOS窗口了! 
  • 关于在FreeBSD上安装GD库的问题解决。(兼回西狂兄) 
  • 转贴:开发大型PHP项目的方法(一) 
  • 转贴:开发大型PHP项目的方法(五) 
  • 页面导航:

    正文内容:
    非常不好意思,没时间翻译,只好直接贴出来了

    dom xml functions
    these functions are only available if php was configured with --with-dom=[dir], using the gnome xml library. you will need at least libxml-2.0.0 (the beta version will not work). these functions have been added in php4.

    this module defines the following constants:

    table 1. xml constants

    constant value description
    xml_element_node 1 
    xml_attribute_node 2 
    xml_text_node 3 
    xml_cdata_section_node 4 
    xml_entity_ref_node 5 
    xml_entity_node 6 
    xml_pi_node 7 
    xml_comment_node 8 
    xml_document_node 9 
    xml_document_type_node 10 
    xml_document_frag_node 11 
    xml_notation_node 12 
    xml_global_namespace 1 
    xml_local_namespace 2 

    this module defines a number of classes. the dom xml functions return a parsed tree of the xml document with each node being an object belonging to one of these classes.

    xmldoc
    (php4 >= 4.0b4)

    xmldoc -- creates a dom object of an xml document
    description

    object xmldoc (string str)


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

    xmldocfile
    (php4 >= 4.0b4)

    xmldocfile -- creates a dom object from xml file
    description

    object xmldocfile (string filename)


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

    xmltree
    (php4 >= 4.0b4)

    xmltree -- creates a tree of php objects from xml document
    description

    object xmltree (string str)


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



     

     
    热门推荐笔记本: IBM笔记本
    相关文章:
    webmaster:popbb@126.com   最佳浏览:1024X768 MSIE
    ©2007 popbb.net All Rights Reserved