WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

PHP 5 libxml Functions


Introduction to PHP Libxml

Libxml functions and constants are used with SimpleXML, XSLT, and DOM functions.


Installation

These functions require the Libxml package. Download at xmlsoft.org


Introduction to PHP Libxml

Libxml functions and constants are used with SimpleXML, XSLT, and DOM functions.


Installation

These functions require the Libxml package. Download at xmlsoft.org


PHP Libxml function

PHP : Indicates the earliest version of PHP that supports this function.

function description PHP
libxml_clear_errors () Empty the Libxml error buffer. 5
libxml_get_errors () Retrieve the error array. 5
libxml_get_last_error () Retrieves the last error from Libxml. 5
libxml_set_streams_context () Set up the streaming environment for the next Libxml document load or write. 5
libxml_use_internal_errors () Disable Libxml errors and allow users to read error information on demand. 5


PHP Libxml constants

function description PHP PHP
LIBXML_COMPACT Set small node allocation optimization. Will improve application performance. 5
LIBXML_DTDATTR Set the default DTD attributes. 5
LIBXML_DTDLOAD Load external subset. 5
LIBXML_DTDVALID Verify with DTD. 5
LIBXML_NOBLANKS Delete empty nodes. 5
LIBXML_NOCDATA Set CDATA as a text node. 5
LIBXML_NOEMPTYTAG Change empty tags (e.g. <br/> Change to <br></br>)。only at DOMDocument->save() with DOMDocument->saveXML() Available in functions. 5
LIBXML_NOENT Substitute entity. 5
LIBXML_NOERROR Do not display error reports. 5
LIBXML_NONET Stop network access while loading document. 5
LIBXML_NOWARNING Do not display warning reports. 5
LIBXML_NOXMLDECL Undo the XML declaration when saving the document. 5
LIBXML_NSCLEAN Remove additional namespace declarations. 5
LIBXML_XINCLUDE Use XInclude substitution. 5
LIBXML_ERR_ERROR Get recoverable errors. 5
LIBXML_ERR_FATAL Get fatal error. 5
LIBXML_ERR_NONE Get no errors. 5
LIBXML_ERR_WARNING Get a simple warning. 5
LIBXML_VERSION Get libxml version (e.g. 20605 or 20617) Get libxml version (e.g. 20605 or 20617) 5
LIBXML_DOTTED_VERSION Get a version of Libxml (for example: 2.6.5 or 2.6.17). 5