当前位置: 首页 > 网络学院 > 服务端脚本教程 > PHP > PHP Libxml

PHP
WINDOWS下安装MySQL
PHP 制作 网站/服务器 监视脚本
用PHP和CSS制作活动按钮
PHP 单件模式
PHP MVC模式,类封装以及HACK
PHP 中使用正则表达式
PHP 防止 SQL 注入攻击
PHP 跨站点脚本攻击
PHP 防止用户操纵 GET 变量
PHP 防止远程表单提交

PHP Libxml


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-01   浏览: 867 ::
收藏到网摘: n/a

PHP libxml Introduction
PHP libxml简介

The libxml functions and constants are used together with SimpleXML, XSLT and DOM functions.
Libxml函数和常数通常和SimpleXML、XSLT和DOM函数一起使用。


Installation
安装

These functions require the libxml package. It can be downloaded here: Downloads at xmlsoft.org
要使用这些函数,必须要装libxml软件包。你可以在下面的地址下载它: xmlsoft.org


PHP libxml Functions
PHP libxml函数

PHP: indicates the earliest version of PHP that supports the function.
PHP:最早支持这些函数的PHP版本

Function
函数
Description
描述
PHP
libxml_clear_errors() Clear libxml error buffer
清除libxml错误缓冲
5
libxml_get_errors() Retrieve array of errors
获取数组形式的错误信息
5
libxml_get_last_error() Retrieve last error from libxml
获取libxml中最后出现的错误
5
libxml_set_streams_context() Set the streams context for the next libxml document load or write
为下一个libxml文档的装载和书写设置一个context[文本内容]流[stream]
5
libxml_use_internal_errors() Disable libxml errors and allow user to fetch error information as needed
让用户根据自己的需要来设置是否需要获取错误信息
5

 


PHP libxml Constants
PHP libxml常数

Function
函数
Description
描述
PHP
LIBXML_COMPACT Set small nodes allocation optimization. This may improve the application performance
设置一个微型的最优化分配节点。它将对应用程序的执行进行改进
5
LIBXML_DTDATTR Set default DTD attributes
设置默认的DTD属性
5
LIBXML_DTDLOAD Load external subset
装载外部子集
5
LIBXML_DTDVALID Validate with the DTD
通过DTD进行验证
5
LIBXML_NOBLANKS Remove blank nodes
删除空节点
5
LIBXML_NOCDATA Set CDATA as text nodes
将CDATA设置为文本节点
5
LIBXML_NOEMPTYTAG Change empty tags (e.g. <br/> to <br></br>), only available in the DOMDocument->save() and DOMDocument->saveXML() functions
改变空的标签(例如:将单个的</br>转换为<br></br>),这些标签仅在DOMDocument->save() 函数和 DOMDocument->saveXML()函数中使用
5
LIBXML_NOENT Substitute entities
替代实体
5
LIBXML_NOERROR Do not show error reports
隐藏错误报告
5
LIBXML_NONET Stop network access while loading documents
当装载文当时停止访问网络
5
LIBXML_NOWARNING Do not show warning reports
不显示错误报告
5
LIBXML_NOXMLDECL Drop the XML declaration when saving a document
当存储一个文档时放弃XML声明
5
LIBXML_NSCLEAN Remove excess namespace declarations
删除多余的名称空间[namespace]生命
5
LIBXML_XINCLUDE Use XInclude substitution
使用Xinclude替代
5
LIBXML_ERR_ERROR Get recoverable errors
可重新获取错误信息
5
LIBXML_ERR_FATAL Get fatal errors
给出重大错误信息提示
5
LIBXML_ERR_NONE Get no errors
不给出任何错误信息提示
5
LIBXML_ERR_WARNING Get simple warnings
给出简单警告[warning]信息
5
LIBXML_VERSION Get libxml version (e.g. 20605 or 20617)
获取libxml版本(例如:20605 或 20617)
5
LIBXML_DOTTED_VERSION Get dotted libxml version (e.g. 2.6.5 or 2.6.17)
用点将libxml版本号分隔(例如:2.6.5 或 2.6.17)
5

评论 (0) All

登陆 | 还没注册?