Results 1 to 5 of 5

Thread: What are the PHP libxml Functions?

  1. #1
    Join Date
    Aug 2006
    Posts
    155

    What are the PHP libxml Functions?

    I know that PHP is a powerful tool for making dynamic and interactive Web pages. So I am making some practice in PHP. Recently I have started the PHP, so I don't have an enough knowledge. I have come through libxml Functions. Can anyone explain me what are the PHP libxml Functions.? If possible give me some attributes or an examples. Please provide me some useful information. Any positive information about the topic are warmly welcomed..!!
    Desktop * Athlon X2 4200 | 2048M RAM | 160G HD | 7600GT
    MacMini * G4 1.33GHz | 512M RAM | 40G HD | Radeon 9200
    Laptop * Sempron 2800 | 512M RAM | 60G HD
    PDA * Dell Axim x51 | 128M Internal | 256M SD Card

  2. #2
    Join Date
    Oct 2005
    Posts
    2,393

    Re: What are the PHP libxml Functions?

    As you said that PHP is a powerful tool for making dynamic and interactive Web pages. It is also widely-used, free, and efficient alternative to competitors such as Microsoft's ASP. The following are some functions of PHP that the latest version supports :
    If you want to Clear libxml error buffer, you can use the function libxml_clear_errors().
    If you want to retrieve array of errors, you can use the function libxml_get_errors().
    Here is an example for libxml_clear_errors().
    Code:
    <?php
    libxml_clear_errors()
    ?>
    This is an example of libxml_get_errors().
    Code:
    <?php
    libxml_get_errors()
    ?>

  3. #3
    Join Date
    Nov 2008
    Posts
    1,192

    Re: What are the PHP libxml Functions?

    The function libxml_get_last_error() is also related to the PHP libxml Functions. If you want to retrieve last error from libxml, you can use the function libxml_get_last_error(). The libxml_get_last_error() returns an error object on success, and FALSE on failure or if there are no errors in the libxml error buffer. Here is an example for that function :
    Code:
    <?php
    libxml_get_last_error()
    ?>

  4. #4
    Join Date
    Nov 2008
    Posts
    996

    Re: What are the PHP libxml Functions?

    You can use the function libxml_use_internal_errors() for disabling the ibxml errors and allow user to fetch error information as needed. This function is also related with PHP libxml Functions. The libxml_use_internal_errors() function disables standard libxml errors and enables user error handling. Also this function returns the previous value of the use_lib_errors parameter. Here is the example of libxml_use_internal_errors() :
    Code:
    <?php
    libxml_use_internal_errors()
    ?>

  5. #5
    Join Date
    Jul 2006
    Posts
    289

    Re: What are the PHP libxml Functions?

    I am providing you with some PHP libxml Constants :
    • LIBXML_DTDLOAD - Used to Load external subset.
    • LIBXML_DTDATTR - Set default DTD attributes.
    • LIBXML_NOCDATA - Used to set CDATA as text nodes.
    • LIBXML_NOBLANKS - For Removing the blank nodes.
    • LIBXML_COMPACT - For setting small nodes allocation optimization. This may improve the application performance.
    • LIBXML_DTDVALID - Validate with the DTD.
    Signatures reduce available bandwidth

Similar Threads

  1. SQL Scalar Functions
    By Bhardwaj in forum Software Development
    Replies: 5
    Last Post: 15-12-2009, 12:38 PM
  2. How to call a C functions within PHP?
    By Rixwel in forum Software Development
    Replies: 3
    Last Post: 05-09-2009, 09:12 AM
  3. PHP fsockopen Functions
    By Japesh in forum Software Development
    Replies: 3
    Last Post: 22-05-2009, 06:02 PM
  4. Array Functions in PHP
    By SuperXCM in forum Software Development
    Replies: 2
    Last Post: 26-03-2009, 10:57 AM
  5. Functions in PHP
    By Gyan Guru in forum Guides & Tutorials
    Replies: 3
    Last Post: 13-12-2008, 06:20 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,062,369.46853 seconds with 17 queries