PHP libxml functies
PHP libxml introductie
Gebruik libxml functies en constanten samen met SimpleXML, XSLT en DOM.
Installeer
Deze functies vereisen het libxml pakket.Download hier van xmlsoft.org
PHP libxml functies
PHP:Geef de vroegste PHP-versie aan die deze functie ondersteunt.
Functie | Beschrijving | PHP |
---|---|---|
libxml_clear_errors() | Maak libxml foutbuffer leeg. | 5 |
libxml_get_errors() | Haal foutenarray op. | 5 |
libxml_get_last_error() | Haal de laatste fout van libxml op. | 5 |
libxml_set_streams_context() | Stel stroomomgeving in voor de volgende libxml document laden of schrijven. | 5 |
libxml_use_internal_errors() | Schakel libxml fouten uit, laat gebruikers foutinformatie op aanvraag lezen. | 5 |
PHP libxml constanten
Functie | Beschrijving | PHP |
---|---|---|
LIBXML_COMPACT | Stel optimalisatie voor kleine knooppunten in. Verbetert de prestaties van de applicatie. | 5 |
LIBXML_DTDATTR | Stel standaard DTD-eigenschappen in. | 5 |
LIBXML_DTDLOAD | Laden van externe subsets. | 5 |
LIBXML_DTDVALID | Validate through DTD. | 5 |
LIBXML_NOBLANKS | Remove empty nodes. | 5 |
LIBXML_NOCDATA | Set CDATA to text node. | 5 |
LIBXML_NOEMPTYTAG |
Change empty tags (for example, <br/> to <br></br>). Available only in DOMDocument->save() and DOMDocument->saveXML() functions. |
5 |
LIBXML_NOENT | Replace entities. | 5 |
LIBXML_NOERROR | Do not display error reports. | 5 |
LIBXML_NONET | Stop network access when loading the document. | 5 |
LIBXML_NOWARNING | Do not display warning reports. | 5 |
LIBXML_NOXMLDECL | Undo XML declaration when saving the document. | 5 |
LIBXML_NSCLEAN | Remove additional namespace declarations. | 5 |
LIBXML_XINCLUDE | Use XInclude replacement. | 5 |
LIBXML_ERR_ERROR | Obtain recoverable errors. | 5 |
LIBXML_ERR_FATAL | Obtain fatal errors. | 5 |
LIBXML_ERR_NONE | Obtain no errors. | 5 |
LIBXML_ERR_WARNING | Obtain simple warnings. | 5 |
LIBXML_VERSION | Obtain libxml version (for example: 20605 or 20617). | 5 |
LIBXML_DOTTED_VERSION | Obtain a version with dots in libxml (for example: 2.6.5 or 2.6.17). | 5 |