May 11, 2021 PHP
How does PHP use the Libxml function? Please refer to this section.
Libxml functions and constants are used with SimpleXML, XSLT, and DOM functions.
These functions require a Libxml package. Download xmlsoft.org the
PHP: Indicates the earliest version of PHP that supports the function.
function | describe | PHP |
---|---|---|
libxml_clear_errors() | Clear libXML error buffer. | 5 |
libxml_get_errors() | Retrieve the error array. | 5 |
libxml_get_last_error() | Retrieve final errors from libXML. | 5 |
libxml_set_streams_context() | To load or write to the next libXML document. | 5 |
libxml_use_internal_errors() | Disable libXML errors, allow users to read error messages on demand. | 5 |
function | describe | PHP |
---|---|---|
LIBXML_COMPACT | Set small node assignment optimization.Will improve the performance of the application. | 5 |
LIBXML_DTDATTR | Set the default DTD property. | 5 |
LIBXML_DTDLOAD | Load external subset. | 5 |
LIBXML_DTDVALID | Verify via DTD. | 5 |
LIBXML_NOBLANKS | Delete the empty node. | 5 |
LIBXML_NOCDATA | Set the CDATA as a text node. | 5 |
LIBXML_NOEMPTYTAG | 更改空标签(比如 <br/> 改为 <br></br>)。仅在 DOMDocument->save() 和 DOMDocument->saveXML() 函数中可用。 | 5 |
LIBXML_NOENT | Alternative entity. | 5 |
LIBXML_NOERROR | No error report is displayed. | 5 |
LIBXML_NONET | Stop the network access when loading a document. | 5 |
LIBXML_NOWARNING | Warning report is not displayed. | 5 |
LIBXML_NOXMLDECL | Undo XML declaration when saving documents. | 5 |
LIBXML_NSCLEAN | Delete additional namespace declarations. | 5 |
LIBXML_XINCLUDE | Use xinclude to replace it. | 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. | 5 |
LIBXML_VERSION | Get libXML versions (eg 20605 or 20617) GET LIBXML VERSION (E.G. 20605 or 20617) | 5 |
LIBXML_DOTTED_VERSION | Get a bit number LIBXML version (for example: 2.6.5 or 2.6.17). | 5 |