Libxml Functions

  1. libxml_clear_errors()
  2. libxml_get_errors()
  3. libxml_get_last_error()
  4. libxml_set_streams_context()
  5. libxml_use_internal_errors()

Libxml Constants

LIBXML_COMPACT

Set small nodes allocation optimization. This may improve the application performance

LIBXML_DTDATTR

Set default DTD attributes

LIBXML_DTDLOAD

Load external subset

LIBXML_DTDVALID

Validate with the DTD

LIBXML_NOBLANKS

Remove blank nodes

LIBXML_NOCDATA

Set CDATA as text nodes

LIBXML_NOEMPTYTAG

Change empty tags (e.g. <br/> to <br></br>), only available in the DOMDocument->save() and DOMDocument->saveXML() functions

LIBXML_NOENT

Substitute entities

LIBXML_NOERROR

Do not show error reports

LIBXML_NONET

Stop network access while loading documents

LIBXML_NOWARNING

Do not show warning reports

LIBXML_NOXMLDECL

Drop the XML declaration when saving a document

LIBXML_NSCLEAN

Remove excess namespace declarations

LIBXML_XINCLUDE

Use XInclude substitution

LIBXML_ERR_ERROR

Get recoverable errors

LIBXML_ERR_FATAL

Get fatal errors

LIBXML_ERR_NONE

Get no errors

LIBXML_ERR_WARNING

Get simple warnings

LIBXML_VERSION

Get libxml version (e.g. 20605 or 20617)

LIBXML_DOTTED_VERSION

Get dotted libxml version (e.g. 2.6.5 or 2.6.17)

Share This:

Leave a Reply

Your email address will not be published. Required fields are marked *