downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the SVN repository for this website on svn.php.net.

Source of: /manual/en/libxml.constants.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/book.libxml.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'libxml.constants.php',
   
1 => 'Predefined Constants',
  ),
 
'up' =>
  array (
   
0 => 'book.libxml.php',
   
1 => 'libxml',
  ),
 
'prev' =>
  array (
   
0 => 'libxml.resources.php',
   
1 => 'Resource Types',
  ),
 
'next' =>
  array (
   
0 => 'class.libxmlerror.php',
   
1 => 'libXMLError',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div>
 <h1>Predefined Constants</h1>

 <p class="simpara">
The constants below are defined by this extension, and
will only be available when the extension has either
been compiled into PHP or dynamically loaded at runtime.
</p>
 <dl>

  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">LIBXML_COMPACT</tt></b>
     (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     Activate small nodes allocation optimization. This may speed up your
     application without needing to change the code.
    </span>
    <blockquote><p><b class="note">Note</b>:
    
      Only available in Libxml &gt;= 2.6.21
     <br />
    </p></blockquote>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">LIBXML_DTDATTR</tt></b>
     (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     Default DTD attributes
    </span>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">LIBXML_DTDLOAD</tt></b>
     (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     Load the external subset
    </span>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">LIBXML_DTDVALID</tt></b>
     (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     Validate with the DTD
    </span>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">LIBXML_NOBLANKS</tt></b>
     (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     Remove blank nodes
    </span>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">LIBXML_NOCDATA</tt></b>
     (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     Merge CDATA as text nodes
    </span>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">LIBXML_NOEMPTYTAG</tt></b>
     (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     Expand empty tags (e.g. <i>&lt;br/&gt;</i> to
     <i>&lt;br&gt;&lt;/br&gt;</i>)
    </span>
    <blockquote><p><b class="note">Note</b>:
    
      This option is currently just available in the
      <a href="domdocument.save.php" class="xref">DOMDocument::save</a> and
      <a href="domdocument.savexml.php" class="xref">DOMDocument::saveXML</a> functions.
     <br />
    </p></blockquote>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">LIBXML_NOENT</tt></b>
     (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     Substitute entities
    </span>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">LIBXML_NOERROR</tt></b>
     (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     Suppress error reports
    </span>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">LIBXML_NONET</tt></b>
     (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     Disable network access when loading documents
    </span>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">LIBXML_NOWARNING</tt></b>
     (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     Suppress warning reports
    </span>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">LIBXML_NOXMLDECL</tt></b>
     (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     Drop the XML declaration when saving a document
    </span>
    <blockquote><p><b class="note">Note</b>:
    
      Only available in Libxml &gt;= 2.6.21
     <br />
    </p></blockquote>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">LIBXML_NSCLEAN</tt></b>
     (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     Remove redundant namespaces declarations
    </span>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">LIBXML_XINCLUDE</tt></b>
     (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     Implement XInclude substitution
    </span>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">LIBXML_ERR_ERROR</tt></b>
     (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     A recoverable error
    </span>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">LIBXML_ERR_FATAL</tt></b>
     (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     A fatal error
    </span>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">LIBXML_ERR_NONE</tt></b>
     (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     No errors
    </span>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">LIBXML_ERR_WARNING</tt></b>
     (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     A simple warning
    </span>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">LIBXML_VERSION</tt></b>
     (<a href="language.types.integer.php" class="type integer">integer</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     libxml version like 20605 or 20617
    </span>
   </dd>

 
  <dt class="varlistentry">

   <span class="term">
    <b><tt class="constant">LIBXML_DOTTED_VERSION</tt></b>
     (<a href="language.types.string.php" class="type string">string</a>)
   </span>

   </dt><dd class="listitem">

    <span class="simpara">
     libxml version like 2.6.5 or 2.6.17
    </span>
   </dd>

 
 </dl>

</div>
<?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites