• PHP Video Tutorials

PHP - libXML Functions



The libxml extension functions helps you to manipulate the errors thrown by the libxml library.

Installation

This extension enable by default. Default command line for disable at compile time is --disable-libxml.

Runtime Configuration

This extension has no configuration directives defined in php.ini.

functions

Following are the libxml functions −

Sr.No Function & Description PHP
1 libxml_get_errors

This function retrieves the errors.

5
2 libxml_get_last_error

This function is used to retrieve the last error from libxml.

5
3 libxml_use_internal_errors

This function disables the xml errors and allows you to fetch them as you need.

5
4 libxml_clear_errors

This function is used to clear the libxml error buffer.

5
5 libxml_set_streams_context

This function is used to set the next next libxml document load or write.

5
6 libxml_set_external_entity_loader

This function is used to disable the ability to load the external entities.

5
php_function_reference.htm
Advertisements