PhpLibxml function Introduction to PHP Libxml
Libxml functions and constants are used with SimpleXML, XSLT, and DOM functions.
Installation
These functions require a Libxml package. Download in xmlsoft.org
PHP Libxml functions
php: Indicates the earliest version of PHP that supports this function.
function |
Description |
PHP |
Libxml_clear_errors () |
Clears the Libxml error buffer. |
5 |
Libxml_get_errors () |
Retrieves an array of errors. |
5 |
Libxml_get_last_error () |
Retrieves the last error from Libxml. |
5 |
Libxml_set_streams_context () |
Sets the flow environment for the next Libxml document load or write. |
5 |
Libxml_use_internal_errors () |
Disables the Libxml error, allowing the user to read the error message on demand. |
5 |
PHP Libxml Constants
function |
Description |
PHP |
Libxml_compact |
Set up small node assignment optimizations. Will improve the performance of your application. |
5 |
Libxml_dtdattr |
Sets the default DTD property. |
5 |
Libxml_dtdload |
Loads an external subset. |
5 |
Libxml_dtdvalid |
Validated through a DTD. |
5 |
Libxml_noblanks |
Delete the empty node. |
5 |
Libxml_nocdata |
Set CDATA to a text node. |
5 |
Libxml_noemptytag |
Change the empty label (for example, <br/> to <br></br>). Available only in the Domdocument->save () and Domdocument->savexml () functions. |
5 |
Libxml_noent |
An alternative entity. |
5 |
Libxml_noerror |
Error reporting is not displayed. |
5 |
Libxml_nonet |
Stops network access when loading a document. |
5 |
Libxml_nowarning |
No warning report is displayed. |
5 |
Libxml_noxmldecl |
The XML declaration is revoked when the document is saved. |
5 |
Libxml_nsclean |
Delete the additional namespace declaration. |
5 |
Libxml_xinclude |
Use XInclude displacement. |
5 |
Libxml_err_error |
Get a recoverable error. |
5 |
Libxml_err_fatal |
Get a fatal error. |
5 |
Libxml_err_none |
Get no errors. |
5 |
Libxml_err_warning |
Get a simple warning. |
5 |
Libxml_version |
Get Libxml version (ex: 20605 or 20617) get Libxml version (e.g. 20605 or 20617) |
5 |
Libxml_dotted_version |
Get a Libxml version of the number (for example: 2.6.5 or 2.6.17). |
5 |
PHP libxml functions