Libxml functions and constants are used with SimpleXML, XSLT, and DOM functions.
These functions require the Libxml package. Download at xmlsoft.org
PHP : Indicates the earliest PHP version that supports this function.
function | describe | PHP |
---|---|---|
libxml_clear_errors() | Clear the Libxml error buffer. | 5 |
libxml_get_errors() | Retrieve an array of errors. | 5 |
libxml_get_last_error() | Retrieve the last error from Libxml. | 5 |
libxml_set_streams_context() | Sets the streaming environment for the next Libxml document load or write. | 5 |
libxml_use_internal_errors() | Disable Libxml errors, allowing users to read error information on demand. | 5 |
function | describe | PHP |
---|---|---|
LIBXML_COMPACT | Set up small node allocation optimization. Will improve application performance. | 5 |
LIBXML_DTDATTR | Set default DTD properties. | 5 |
LIBXML_DTDLOAD | Load external subset. | 5 |
LIBXML_DTDVALID | Validation via 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/> to <br></br>). Available only in DOMDocument->save() and DOMDocument->saveXML() functions. | 5 |
LIBXML_NOENT | Substitute entity. | 5 |
LIBXML_NOERROR | Do not display error reports. | 5 |
LIBXML_NONET | Stop network access while the document is loading. | 5 |
LIBXML_NOWARNING | Do not display warning reports. | 5 |
LIBXML_NOXMLDECL | When saving the document, revoke the XML declaration. | 5 |
LIBXML_NSCLEAN | Remove extra namespace declarations. | 5 |
LIBXML_XINCLUDE | Use XInclude substitution. | 5 |
LIBXML_ERR_ERROR | Get recoverable errors. | 5 |
LIBXML_ERR_FATAL | Getting a fatal error. | 5 |
LIBXML_ERR_NONE | Get no errors. | 5 |
LIBXML_ERR_WARNING | Get a simple warning. | 5 |
LIBXML_VERSION | Get libxml version (eg 20605 or 20617) Get libxml version (eg 20605 or 20617) | 5 |
LIBXML_DOTTED_VERSION | Get the dotted Libxml version (for example: 2.6.5 or 2.6.17). | 5 |