PHP libxml functions

Source: Internet
Author: User

PhpLibxml function Introduction to PHP Libxml

Libxml functions and constants are used with SimpleXML, XSLT, and DOM functions.

Installation

These functions require a Libxml package. Download in xmlsoft.org

PHP Libxml functions

php: Indicates the earliest version of PHP that supports this function.

function Description PHP
Libxml_clear_errors () Clears the Libxml error buffer. 5
Libxml_get_errors () Retrieves an array of errors. 5
Libxml_get_last_error () Retrieves the last error from Libxml. 5
Libxml_set_streams_context () Sets the flow environment for the next Libxml document load or write. 5
Libxml_use_internal_errors () Disables the Libxml error, allowing the user to read the error message on demand. 5

PHP Libxml Constants

function Description PHP
Libxml_compact Set up small node assignment optimizations. Will improve the performance of your application. 5
Libxml_dtdattr Sets the default DTD property. 5
Libxml_dtdload Loads an external subset. 5
Libxml_dtdvalid Validated through a DTD. 5
Libxml_noblanks Delete the empty node. 5
Libxml_nocdata Set CDATA to a text node. 5
Libxml_noemptytag Change the empty label (for example, <br/> to <br></br>). Available only in the Domdocument->save () and Domdocument->savexml () functions. 5
Libxml_noent An alternative entity. 5
Libxml_noerror Error reporting is not displayed. 5
Libxml_nonet Stops network access when loading a document. 5
Libxml_nowarning No warning report is displayed. 5
Libxml_noxmldecl The XML declaration is revoked when the document is saved. 5
Libxml_nsclean Delete the additional namespace declaration. 5
Libxml_xinclude Use XInclude displacement. 5
Libxml_err_error Get a recoverable error. 5
Libxml_err_fatal Get a fatal error. 5
Libxml_err_none Get no errors. 5
Libxml_err_warning Get a simple warning. 5
Libxml_version Get Libxml version (ex: 20605 or 20617) get Libxml version (e.g. 20605 or 20617) 5
Libxml_dotted_version Get a Libxml version of the number (for example: 2.6.5 or 2.6.17). 5

PHP libxml functions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.