Friday, 23 December 2011

PHP libxml Functions Reference


PHP libxml Introduction

The libxml functions and constants are used together with SimpleXML, XSLT and DOM functions.

Installation

These functions require the libxml package. Download at xmlsoft.org

PHP libxml Functions

PHP: indicates the earliest version of PHP that supports the function.
FunctionDescriptionPHP
libxml_clear_errors()Clear libxml error buffer5
libxml_get_errors()Retrieve array of errors5
libxml_get_last_error()Retrieve last error from libxml5
libxml_set_streams_context()Set the streams context for the next libxml document load or write5
libxml_use_internal_errors()Disable libxml errors and allow user to fetch error information as needed5


PHP libxml Constants

FunctionDescriptionPHP
LIBXML_COMPACTSet small nodes allocation optimization. This may improve the application performance5
LIBXML_DTDATTRSet default DTD attributes5
LIBXML_DTDLOADLoad external subset5
LIBXML_DTDVALIDValidate with the DTD5
LIBXML_NOBLANKSRemove blank nodes5
LIBXML_NOCDATASet CDATA as text nodes5
LIBXML_NOEMPTYTAGChange empty tags (e.g. <br/> to <br></br>), only available in the DOMDocument->save() and DOMDocument->saveXML() functions5
LIBXML_NOENTSubstitute entities5
LIBXML_NOERRORDo not show error reports5
LIBXML_NONETStop network access while loading documents5
LIBXML_NOWARNINGDo not show warning reports5
LIBXML_NOXMLDECLDrop the XML declaration when saving a document5
LIBXML_NSCLEANRemove excess namespace declarations5
LIBXML_XINCLUDEUse XInclude substitution5
LIBXML_ERR_ERRORGet recoverable errors5
LIBXML_ERR_FATALGet fatal errors5
LIBXML_ERR_NONEGet no errors5
LIBXML_ERR_WARNINGGet simple warnings5
LIBXML_VERSIONGet libxml version (e.g. 20605 or 20617)5
LIBXML_DOTTED_VERSIONGet dotted libxml version (e.g. 2.6.5 or 2.6.17)5

No comments:

Post a Comment