ÍøÂçѧԺ w3popÉçÇø ÍøÂç×ÊÔ´ ITÐÂÎÅ

w3pop.com :: ÍøÂçѧԺ :: PHP :: PHP Libxml

»áÔ±µÇ½

ÕʺÅ

ÃÜÂë

»Ø´ð

¼ÇסÃÜÂë

Íü¼ÇÃÜÂë? ×¢²á

PHP
PHP Libxml
PHP Math
PHP Misc
PHP MySQL
PHP SimpleXML
PHP String
PHP XML
PHP Zip
PHP Mail
ÓÃPHP5µÄDirector..
PHP ×èÖ¹SQL×¢ÈëÊ..
PHP5ÃæÏò¶ÔÏó - »..
PHP5ÃæÏò¶ÔÏó - »..
PHP5ÃæÏò¶ÔÏó - »..
PHP5ÃæÏò¶ÔÏó - »..
PHP5ÃæÏò¶ÔÏó - »..
php5ÃæÏò¶ÔÏó - »..
php5ÃæÏò¶ÔÏó - »..
ÓÃPHP¿ØÖÆÓû§µÄä..
PHP PDO ѧϰ±Ê¼Ç

PHP Libxml


×÷Õß:w3pop.com ·­Òë/ÕûÀí:w3pop.com ·¢²¼:2007-04-28 ÐÞ¸Ä:2007-06-17 ä¯ÀÀ:4268 :: ::

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