libxml_get_last_error

(PHP 5 >= 5.1.0, PHP 7) Retrieve last error from libxml LibXMLError libxml_get_last_error ( void ) Retrieve last error from libxml. Returns: Returns a LibXMLError object if there is any error in the buffer, FALSE otherwise. See also: libxml_get_errors() - libxml_clear_errors() -

libxml_set_streams_context

(PHP 5, PHP 7) Set the streams context for the next libxml document load or write void libxml_set_streams_context ( resource $streams_context ) Sets the streams context for the next libxml document load or write. Parameters: streams_context The stream context resource (created with stream_context_create()) Returns: No value is returned.

libxml_clear_errors

(PHP 5 >= 5.1.0, PHP 7) Clear libxml error buffer void libxml_clear_errors ( void ) libxml_clear_errors() clears the libxml error buffer. Returns: No value is returned. See also: libxml_get_errors() - libxml_get_last_error() -

libxml_disable_entity_loader

(PHP 5 >= 5.2.11, PHP 7) Disable the ability to load external entities bool libxml_disable_entity_loader ([ bool $disable = true ] ) Disable/enable the ability to load external entities. Parameters: disable Disable (TRUE) or enable (FALSE) libxml extensions (such as DOM, XMLWriter and XMLReader) to load external entities. Returns: Returns the

libxml_set_external_entity_loader

(PHP 5 >= 5.4.0, PHP 7) Changes the default external entity loader void libxml_set_external_entity_loader ( callable $resolver_function ) Changes the default external entity loader. Parameters: resolver_function A callable that takes three arguments. Two strings, a public id and system id, and a context (an array with four keys) as the third argument. This callback sh

libxml_get_errors

(PHP 5 >= 5.1.0, PHP 7) Retrieve array of errors array libxml_get_errors ( void ) Retrieve array of errors. Returns: Returns an array with LibXMLError objects if there are any errors in the buffer, or an empty array otherwise. Examples: A libxml_get_errors() example This example demonstrates how to build a simple libx

libxml_use_internal_errors

(PHP 5 >= 5.1.0, PHP 7) Disable libxml errors and allow user to fetch error information as needed bool libxml_use_internal_errors ([ bool $use_errors = false ] ) libxml_use_internal_errors() allows you to disable standard libxml errors and enable user error handling. Parameters: use_errors Enable (TRUE) user error handling or disable (FALSE) user error handling. Dis

DOMXPath::registerPhpFunctions

(PHP 5 >= 5.3.0, PHP 7) Register PHP functions as XPath functions public void DOMXPath::registerPhpFunctions ([ mixed $restrict ] ) This method enables the ability to use PHP functions within XPath expressions. Parameters: restrict Use this parameter to only allow certain functions to be called from XPath. This parameter can be either a string (a function name) or a

dom_import_simplexml

(PHP 5, PHP 7) Gets a DOMElement object from a SimpleXMLElement object DOMElement dom_import_simplexml ( SimpleXMLElement $node ) This function takes the node node of class SimpleXML and makes it into a DOMElement node. This new object can then be used as a native DOMElement node. Parameters: node The SimpleXMLElement node. Returns: The DOMElem

DOMXPath::query

(PHP 5, PHP 7) Evaluates the given XPath expression public DOMNodeList DOMXPath::query ( string $expression [, DOMNode $contextnode [, bool $registerNodeNS = true ]] ) Executes the given XPath expression. Parameters: expression The XPath expression to execute. contextnode The optional contextnode can be specified for doing relative X