<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = 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 => 'fr',
  ),
  'this' => 
  array (
    0 => 'libxml.constants.php',
    1 => 'Constantes pr&eacute;-d&eacute;finies',
    2 => 'Constantes pr&eacute;-d&eacute;finies',
  ),
  'up' => 
  array (
    0 => 'book.libxml.php',
    1 => 'libxml',
  ),
  'prev' => 
  array (
    0 => 'libxml.installation_old.php',
    1 => 'Installation pour les versions de PHP &lt; 7.4',
  ),
  'next' => 
  array (
    0 => 'class.libxmlerror.php',
    1 => 'LibXMLError',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/libxml/constants.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="libxml.constants" class="appendix">
 <h1 class="title">Constantes pré-définies</h1>

 <p class="simpara">Ces constantes sont définies par cette
extension, et ne sont disponibles que si cette extension a été compilée avec
PHP, ou bien chargée au moment de l&#039;exécution.</p>
 <dl>
  
   <dt id="constant.libxml-biglines">
    <strong><code><a href="libxml.constants.php#constant.libxml-biglines">LIBXML_BIGLINES</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Permet de signaler correctement les numéros de ligne supérieurs à 65535.
    </span>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <p class="para">
      Uniquement disponible dans PHP 7.0.0 avec Libxml &gt;= 2.9.0
     </p>
    </p></blockquote>
   </dd>
  
  
   <dt id="constant.libxml-compact">
    <strong><code><a href="libxml.constants.php#constant.libxml-compact">LIBXML_COMPACT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Active l&#039;optimisation de l&#039;allocation de petits nœuds. Ceci pourrait
     augmenter la rapidité de l&#039;application sans avoir besoin de changer
     le code.
    </span>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <p class="para">
      Seulement disponible dans Libxml &gt;= 2.6.21
     </p>
    </p></blockquote>
   </dd>
  
  
   <dt id="constant.libxml-dtdattr">
    <strong><code><a href="libxml.constants.php#constant.libxml-dtdattr">LIBXML_DTDATTR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Attribut de DTD par défaut
    </span>
    <div class="caution"><strong class="caution">Attention</strong>
     <p class="simpara">
      Activer le chargement des attributs DTD permettra la récupération d&#039;entités externes.
      La constante <strong><code><a href="libxml.constants.php#constant.libxml-no-xxe">LIBXML_NO_XXE</a></code></strong> peut être utilisée pour empêcher cela (disponible uniquement dans Libxml &gt;= 2.13.0, à partir de PHP 8.4.0).
     </p>
    </div>
   </dd>
  
  
   <dt id="constant.libxml-dtdload">
    <strong><code><a href="libxml.constants.php#constant.libxml-dtdload">LIBXML_DTDLOAD</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Charge le sous-ensemble externe
    </span>
    <div class="caution"><strong class="caution">Attention</strong>
     <p class="simpara">
      Activer le chargement des sous-ensembles externes permettra la récupération d&#039;entités externes.
      La constante <strong><code><a href="libxml.constants.php#constant.libxml-no-xxe">LIBXML_NO_XXE</a></code></strong> peut être utilisée pour empêcher cela (disponible uniquement dans Libxml &gt;= 2.13.0, à partir de PHP 8.4.0).
     </p>
    </div>
   </dd>
  
  
   <dt id="constant.libxml-dtdvalid">
    <strong><code><a href="libxml.constants.php#constant.libxml-dtdvalid">LIBXML_DTDVALID</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Valide avec la DTD
    </span>
    <div class="caution"><strong class="caution">Attention</strong>
     <p class="simpara">
      Activer la validation du DTD peut faciliter les attaques par entités externes XML (XXE).
      La constante <strong><code><a href="libxml.constants.php#constant.libxml-no-xxe">LIBXML_NO_XXE</a></code></strong> peut être utilisée pour empêcher cela (disponible uniquement dans Libxml &gt;= 2.13.0, à partir de PHP 8.4.0).
     </p>
    </div>
   </dd>
  
  
   <dt id="constant.libxml-html-noimplied">
    <strong><code><a href="libxml.constants.php#constant.libxml-html-noimplied">LIBXML_HTML_NOIMPLIED</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Définit le drapeau HTML_PARSE_NOIMPLIED, qui désactive l&#039;ajout automatique
     des éléments html/body...
    </span>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <p class="para">
      Uniquement disponible en Libxml &gt;= 2.7.7 (à partir de PHP &gt;= 5.4.0)
     </p>
    </p></blockquote>
   </dd>
  
  
   <dt id="constant.libxml-html-nodefdtd">
    <strong><code><a href="libxml.constants.php#constant.libxml-html-nodefdtd">LIBXML_HTML_NODEFDTD</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Définit le drapeau HTML_PARSE_NODEFDTD, qui empêche l&#039;ajout automatique
     d&#039;un doctype si aucun n&#039;est trouvé.
    </span>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <p class="para">
      Uniquement disponible avec Libxml &gt;= 2.7.8 (à partir de PHP &gt;= 5.4.0)
     </p>
    </p></blockquote>
   </dd>
  
  
   <dt id="constant.libxml-loaded-version">
    <strong><code><a href="libxml.constants.php#constant.libxml-loaded-version">LIBXML_LOADED_VERSION</a></code></strong>
    (<span class="type"><a href="language.types.string.php" class="type string">string</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Version du module principal de l&#039;analyseur libxml.
    </span>
   </dd>
  
  
   <dt id="constant.libxml-noblanks">
    <strong><code><a href="libxml.constants.php#constant.libxml-noblanks">LIBXML_NOBLANKS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Suppression des nœuds vides
    </span>
   </dd>
  
  
   <dt id="constant.libxml-nocdata">
    <strong><code><a href="libxml.constants.php#constant.libxml-nocdata">LIBXML_NOCDATA</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Fusion des CDATA en nœuds de texte
    </span>
   </dd>
  
  
   <dt id="constant.libxml-noemptytag">
    <strong><code><a href="libxml.constants.php#constant.libxml-noemptytag">LIBXML_NOEMPTYTAG</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Agrandit les balises vides (par exemple, <code class="literal">&lt;br/&gt;</code> en
     <code class="literal">&lt;br&gt;&lt;/br&gt;</code>)
    </span>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <p class="para">
      Cette option est actuellement disponible uniquement avec les fonctions
      <a href="domdocument.save.php" class="xref">DOMDocument::save</a> et
      <a href="domdocument.savexml.php" class="xref">DOMDocument::saveXML</a>.
     </p>
    </p></blockquote>
   </dd>
  
  
   <dt id="constant.libxml-noent">
    <strong><code><a href="libxml.constants.php#constant.libxml-noent">LIBXML_NOENT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Substitution des entités
    </span>
    <div class="caution"><strong class="caution">Attention</strong>
     <p class="simpara">
      Activer la substitution d&#039;entités peut faciliter les attaques XML
      External Entity (XXE).
     </p>
    </div>
   </dd>
  
  
   <dt id="constant.libxml-noerror">
    <strong><code><a href="libxml.constants.php#constant.libxml-noerror">LIBXML_NOERROR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Suppression du rapport d&#039;erreur
    </span>
   </dd>
  
  
   <dt id="constant.libxml-nonet">
    <strong><code><a href="libxml.constants.php#constant.libxml-nonet">LIBXML_NONET</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Désactivation du réseau lors du chargement de document
    </span>
   </dd>
  
  
   <dt id="constant.libxml-nowarning">
    <strong><code><a href="libxml.constants.php#constant.libxml-nowarning">LIBXML_NOWARNING</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Suppression des rapports d&#039;alerte
    </span>
   </dd>
  
  
   <dt id="constant.libxml-noxmldecl">
    <strong><code><a href="libxml.constants.php#constant.libxml-noxmldecl">LIBXML_NOXMLDECL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Annule la déclaration XML lors de la sauvegarde du document
    </span>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <p class="para">
      Seulement disponible dans Libxml &gt;= 2.6.21
     </p>
    </p></blockquote>
   </dd>
  
  
   <dt id="constant.libxml-no-xxe">
    <strong><code><a href="libxml.constants.php#constant.libxml-no-xxe">LIBXML_NO_XXE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Désactive les entités externes XML (XXE) lors de la substitution d&#039;entités
    </span>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <p class="para">
      Disponible uniquement dans Libxml &gt;= 2.13.0, à partir de PHP 8.4.0
     </p>
    </p></blockquote>
   </dd>
  
  
   <dt id="constant.libxml-nsclean">
    <strong><code><a href="libxml.constants.php#constant.libxml-nsclean">LIBXML_NSCLEAN</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Suppression des espaces de noms redondants
    </span>
   </dd>
  
  
   <dt id="constant.libxml-parsehuge">
    <strong><code><a href="libxml.constants.php#constant.libxml-parsehuge">LIBXML_PARSEHUGE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Affecte le drapeau XML_PARSE_HUGE. Désactive toute limite du
     parseur codée en dur. Ceci affecte les limites comme la profondeur
     maximale d&#039;un document ou la récursion d&#039;entités, mais aussi
     les limites de la taille du texte des nœuds.
    </span>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <p class="para">
      Seulement disponible avec Libxml &gt;= 2.7.0 (à partir de PHP
      &gt;= 5.3.2 et PHP &gt;= 5.2.12)
     </p>
    </p></blockquote>    
   </dd>
  
  
   <dt id="constant.libxml-pedantic">
    <strong><code><a href="libxml.constants.php#constant.libxml-pedantic">LIBXML_PEDANTIC</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Définit le drapeau XML_PARSE_PEDANTIC, qui active le rapport d&#039;erreur
     pedantic.
    </span>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <p class="para">
      Disponible à partir de PHP &gt;= 5.4.0
     </p>
    </p></blockquote>
   </dd>
  
  
   <dt id="constant.libxml-recover">
    <strong><code><a href="libxml.constants.php#constant.libxml-recover">LIBXML_RECOVER</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Active le mode de récupération lors de l&#039;analyse d&#039;un document.
    </span>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <p class="para">
      Disponible uniquement à partir de PHP 8.4.0
     </p>
    </p></blockquote>
   </dd>
  
  
   <dt id="constant.libxml-xinclude"> 
    <strong><code><a href="libxml.constants.php#constant.libxml-xinclude">LIBXML_XINCLUDE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Effectue la substitution XInclude (uniquement pour les parseurs pull, c&#039;est-à-dire <span class="classname"><a href="class.xmlreader.php" class="classname">XMLReader</a></span>).
    </span>
   </dd>
  
  
   <dt id="constant.libxml-err-error">
    <strong><code><a href="libxml.constants.php#constant.libxml-err-error">LIBXML_ERR_ERROR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Erreur non-fatale
    </span>
   </dd>
  
  
   <dt id="constant.libxml-err-fatal">
    <strong><code><a href="libxml.constants.php#constant.libxml-err-fatal">LIBXML_ERR_FATAL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Erreur fatale
    </span>
   </dd>
  
  
   <dt id="constant.libxml-err-none">
    <strong><code><a href="libxml.constants.php#constant.libxml-err-none">LIBXML_ERR_NONE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Aucune erreur
    </span>
   </dd>
  
  
   <dt id="constant.libxml-err-warning">
    <strong><code><a href="libxml.constants.php#constant.libxml-err-warning">LIBXML_ERR_WARNING</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Une alerte simple
    </span>
   </dd>
  
  
   <dt id="constant.libxml-version">
    <strong><code><a href="libxml.constants.php#constant.libxml-version">LIBXML_VERSION</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     libxml version sous la forme 20605 ou 20617
    </span>
   </dd>
  
  
   <dt id="constant.libxml-dotted-version">
    <strong><code><a href="libxml.constants.php#constant.libxml-dotted-version">LIBXML_DOTTED_VERSION</a></code></strong>
    (<span class="type"><a href="language.types.string.php" class="type string">string</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     libxml version sous la forme 2.6.5 ou 2.6.17
    </span>
   </dd>
  
  
   <dt id="constant.libxml-schema-create">
    <strong><code><a href="libxml.constants.php#constant.libxml-schema-create">LIBXML_SCHEMA_CREATE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Crée la valeur par défaut/fixée du nœud durant la validation
     du schéma XSD
    </span>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <p class="para">
      Uniquement disponible en Libxml &gt;= 2.6.14 (à partir de PHP &gt;= 5.5.2)
     </p>
    </p></blockquote>    
   </dd>
  
 </dl>
</div>
<?php manual_footer($setup); ?>