<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.dom.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'dom.constants.php',
    1 => 'Costanti predefinite',
    2 => 'Costanti predefinite',
  ),
  'up' => 
  array (
    0 => 'book.dom.php',
    1 => 'DOM',
  ),
  'prev' => 
  array (
    0 => 'dom.installation.php',
    1 => 'Installazione',
  ),
  'next' => 
  array (
    0 => 'dom.examples.php',
    1 => 'Esempi',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'it',
    'path' => 'reference/dom/constants.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="dom.constants" class="chapter">
 <h1 class="title">Costanti predefinite</h1>

 <p class="simpara">
Queste costanti sono definite da questa estensione e 
sono disponibili solo se l&#039;estensione è stata compilata
nel PHP o se è stata caricata dinamicamente a runtime.
</p>
  <table class="doctable table">
   <caption><strong>Costanti XML</strong></caption>
   
    <thead>
     <tr>
      <th>Costante</th>
      <th>Valore</th>
      <th>Descrizione</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr id="constant.xml-element-node">
      <td>
       <strong><code><a href="dom.constants.php#constant.xml-element-node">XML_ELEMENT_NODE</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>1</td>
      <td>Il nodo è un <span class="classname"><a href="class.domelement.php" class="classname">DOMElement</a></span></td>
     </tr>

     <tr id="constant.xml-attribute-node">
      <td>
       <strong><code><a href="dom.constants.php#constant.xml-attribute-node">XML_ATTRIBUTE_NODE</a></code></strong> 
      (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>2</td>
      <td>Il nodo è un <span class="classname"><a href="class.domattr.php" class="classname">DOMAttr</a></span></td>
     </tr>

     <tr id="constant.xml-text-node">
      <td>
       <strong><code><a href="dom.constants.php#constant.xml-text-node">XML_TEXT_NODE</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>3</td>
      <td>Il nodo è un <span class="classname"><a href="class.domtext.php" class="classname">DOMText</a></span></td>
     </tr>

     <tr id="constant.xml-cdata-section-node">
      <td>
       <strong><code><a href="dom.constants.php#constant.xml-cdata-section-node">XML_CDATA_SECTION_NODE</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>4</td>
      <td>Il nodo è un <span class="classname"><a href="class.domcharacterdata.php" class="classname">DOMCharacterData</a></span></td>
     </tr>

     <tr id="constant.xml-entity-ref-node">
      <td>
       <strong><code><a href="dom.constants.php#constant.xml-entity-ref-node">XML_ENTITY_REF_NODE</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>5</td>
      <td>Il nodo è un <span class="classname"><a href="class.domentityreference.php" class="classname">DOMEntityReference</a></span></td>
     </tr>

     <tr id="constant.xml-entity-node">
      <td>
       <strong><code><a href="dom.constants.php#constant.xml-entity-node">XML_ENTITY_NODE</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>6</td>
      <td>Il nodo è un <span class="classname"><a href="class.domentity.php" class="classname">DOMEntity</a></span></td>
     </tr>

     <tr id="constant.xml-pi-node">
      <td>
       <strong><code><a href="dom.constants.php#constant.xml-pi-node">XML_PI_NODE</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>7</td>
      <td>Il nodo è un <span class="classname"><a href="class.domprocessinginstruction.php" class="classname">DOMProcessingInstruction</a></span></td>
     </tr>

     <tr id="constant.xml-comment-node">
      <td>
       <strong><code><a href="dom.constants.php#constant.xml-comment-node">XML_COMMENT_NODE</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>8</td>
      <td>Il nodo è un <span class="classname"><a href="class.domcomment.php" class="classname">DOMComment</a></span></td>
     </tr>

     <tr id="constant.xml-document-node">
      <td>
       <strong><code><a href="dom.constants.php#constant.xml-document-node">XML_DOCUMENT_NODE</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>9</td>
      <td>Il nodo è un <span class="classname"><a href="class.domdocument.php" class="classname">DOMDocument</a></span></td>
     </tr>

     <tr id="constant.xml-document-type-node">
      <td>
       <strong><code><a href="dom.constants.php#constant.xml-document-type-node">XML_DOCUMENT_TYPE_NODE</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>10</td>
      <td>Il nodo è un <span class="classname"><a href="class.domdocumenttype.php" class="classname">DOMDocumentType</a></span></td>
     </tr>

     <tr id="constant.xml-document-frag-node">
      <td>
       <strong><code><a href="dom.constants.php#constant.xml-document-frag-node">XML_DOCUMENT_FRAG_NODE</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>11</td>
      <td>Il nodo è un <span class="classname"><a href="class.domdocumentfragment.php" class="classname">DOMDocumentFragment</a></span></td>
     </tr>

     <tr id="constant.xml-notation-node">
      <td>
       <strong><code><a href="dom.constants.php#constant.xml-notation-node">XML_NOTATION_NODE</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>12</td>
      <td>Il nodo è un <span class="classname"><a href="class.domnotation.php" class="classname">DOMNotation</a></span></td>
     </tr>

     <tr id="constant.xml-html-document-node">
      <td>
       <strong><code><a href="dom.constants.php#constant.xml-html-document-node">XML_HTML_DOCUMENT_NODE</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>13</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr id="constant.xml-dtd-node">
      <td>
       <strong><code><a href="dom.constants.php#constant.xml-dtd-node">XML_DTD_NODE</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>14</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr id="constant.xml-element-decl-node">
      <td>
       <strong><code><a href="dom.constants.php#constant.xml-element-decl-node">XML_ELEMENT_DECL_NODE</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>15</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr id="constant.xml-attribute-decl-node">
      <td>
       <strong><code><a href="dom.constants.php#constant.xml-attribute-decl-node">XML_ATTRIBUTE_DECL_NODE</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>16</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr id="constant.xml-entity-decl-node">
      <td>
       <strong><code><a href="dom.constants.php#constant.xml-entity-decl-node">XML_ENTITY_DECL_NODE</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>17</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr id="constant.xml-namespace-decl-node">
      <td>
       <strong><code><a href="dom.constants.php#constant.xml-namespace-decl-node">XML_NAMESPACE_DECL_NODE</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>18</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr id="constant.xml-attribute-cdata">
      <td>
       <strong><code><a href="dom.constants.php#constant.xml-attribute-cdata">XML_ATTRIBUTE_CDATA</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>1</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr id="constant.xml-attribute-id">
      <td>
       <strong><code><a href="dom.constants.php#constant.xml-attribute-id">XML_ATTRIBUTE_ID</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>2</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr id="constant.xml-attribute-idref">
      <td>
       <strong><code><a href="dom.constants.php#constant.xml-attribute-idref">XML_ATTRIBUTE_IDREF</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>3</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr id="constant.xml-attribute-idrefs">
      <td>
       <strong><code><a href="dom.constants.php#constant.xml-attribute-idrefs">XML_ATTRIBUTE_IDREFS</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>4</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr id="constant.xml-attribute-entity">
      <td>
       <strong><code><a href="dom.constants.php#constant.xml-attribute-entity">XML_ATTRIBUTE_ENTITY</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>5</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr id="constant.xml-attribute-nmtoken">
      <td>
       <strong><code><a href="dom.constants.php#constant.xml-attribute-nmtoken">XML_ATTRIBUTE_NMTOKEN</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>7</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr id="constant.xml-attribute-nmtokens">
      <td>
       <strong><code><a href="dom.constants.php#constant.xml-attribute-nmtokens">XML_ATTRIBUTE_NMTOKENS</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>8</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr id="constant.xml-attribute-enumeration">
      <td>
       <strong><code><a href="dom.constants.php#constant.xml-attribute-enumeration">XML_ATTRIBUTE_ENUMERATION</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>9</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr id="constant.xml-attribute-notation">
      <td>
       <strong><code><a href="dom.constants.php#constant.xml-attribute-notation">XML_ATTRIBUTE_NOTATION</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>10</td>
      <td class="empty">&nbsp;</td>
     </tr>

    </tbody>
   
  </table>

  <table class="doctable table">
   <caption><strong>Costanti DOMException</strong></caption>
   
    <thead>
     <tr>
      <th>Costante</th>
      <th>Valore</th>
      <th>Descrizione</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr id="constant.dom-php-err">
      <td>
       <strong><code><a href="dom.constants.php#constant.dom-php-err">DOM_PHP_ERR</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>0</td>
      <td>
       Codice di errore non parte della specificazione DOM. Pensato per gli errori PHP.
      </td>
     </tr>

     <tr id="constant.dom-index-size-err">
      <td>
       <strong><code><a href="dom.constants.php#constant.dom-index-size-err">DOM_INDEX_SIZE_ERR</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>1</td>
      <td>
       Se l&#039;indice o la dimensione è negativa, o maggiore del valore permesso.
      </td>
     </tr>

     <tr id="constant.domstring-size-err">
      <td>
       <strong><code><a href="dom.constants.php#constant.domstring-size-err">DOMSTRING_SIZE_ERR</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>2</td>
      <td>
       Se l&#039;intervallo di testo specificato non rientra in un
       <span class="classname"><strong class="classname">DOMString</strong></span>.
      </td>
     </tr>

     <tr id="constant.dom-hierarchy-request-err">
      <td>
       <strong><code><a href="dom.constants.php#constant.dom-hierarchy-request-err">DOM_HIERARCHY_REQUEST_ERR</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>3</td>
      <td>Se un nodo viene inserito in un posto a cui non appartiene</td>
     </tr>

     <tr id="constant.dom-wrong-document-err">
      <td>
       <strong><code><a href="dom.constants.php#constant.dom-wrong-document-err">DOM_WRONG_DOCUMENT_ERR</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>4</td>
      <td>
       Se un nodo viene utilizzato in un documento diverso da quello che lo ha creato.
      </td>
     </tr>

     <tr id="constant.dom-invalid-character-err">
      <td>
       <strong><code><a href="dom.constants.php#constant.dom-invalid-character-err">DOM_INVALID_CHARACTER_ERR</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>5</td>
      <td>
       Se viene specificato un carattere non valido o illegale, come ad esempio in un nome.
      </td>
     </tr>

     <tr id="constant.dom-no-data-allowed-err">
      <td>
       <strong><code><a href="dom.constants.php#constant.dom-no-data-allowed-err">DOM_NO_DATA_ALLOWED_ERR</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>6</td>
      <td>
       Se vengono specificati dati per un nodo che non supporta dati.
      </td>
     </tr>

     <tr id="constant.dom-no-modification-allowed-err">
      <td>
       <strong><code><a href="dom.constants.php#constant.dom-no-modification-allowed-err">DOM_NO_MODIFICATION_ALLOWED_ERR</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>7</td>
      <td>
       Se si tenta di modificare un oggetto in cui non sono consentite modifiche.
      </td>
     </tr>

     <tr id="constant.dom-not-found-err">
      <td>
       <strong><code><a href="dom.constants.php#constant.dom-not-found-err">DOM_NOT_FOUND_ERR</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>8</td>
      <td>
       Se si tenta di fare riferimento a un nodo in un contesto in cui non esiste.
      </td>
     </tr>

     <tr id="constant.dom-not-supported-err">
      <td>
       <strong><code><a href="dom.constants.php#constant.dom-not-supported-err">DOM_NOT_SUPPORTED_ERR</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>9</td>
      <td>
       Se l&#039;implementazione non supporta il tipo richiesto di oggetto o di operazione.
      </td>
     </tr>

     <tr id="constant.dom-inuse-attribute-err">
      <td>
       <strong><code><a href="dom.constants.php#constant.dom-inuse-attribute-err">DOM_INUSE_ATTRIBUTE_ERR</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>10</td>
      <td>
       Se si tenta di aggiungere un attributo che è già in uso altrove.
      </td>
     </tr>

     <tr id="constant.dom-invalid-state-err">
      <td>
       <strong><code><a href="dom.constants.php#constant.dom-invalid-state-err">DOM_INVALID_STATE_ERR</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>11</td>
      <td>
       Se si tenta di utilizzare un oggetto che non è, o non è più, utilizzabile.
      </td>
     </tr>

     <tr id="constant.dom-syntax-err">
      <td>
       <strong><code><a href="dom.constants.php#constant.dom-syntax-err">DOM_SYNTAX_ERR</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>12</td>
      <td>Se viene specificata una stringa non valida o illegale.</td>
     </tr>

     <tr id="constant.dom-invalid-modification-err">
      <td>
       <strong><code><a href="dom.constants.php#constant.dom-invalid-modification-err">DOM_INVALID_MODIFICATION_ERR</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>13</td>
      <td>Se si tenta di modificare il tipo dell&#039;oggetto sottostante.</td>
     </tr>

     <tr id="constant.dom-namespace-err">
      <td>
       <strong><code><a href="dom.constants.php#constant.dom-namespace-err">DOM_NAMESPACE_ERR</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>14</td>
      <td>
       Se viene effettuato un tentativo di creare o modificare un oggetto in un modo che
       non è corretto per quanto riguarda i namespace.
      </td>
     </tr>

     <tr id="constant.dom-invalid-access-err">
      <td>
       <strong><code><a href="dom.constants.php#constant.dom-invalid-access-err">DOM_INVALID_ACCESS_ERR</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>15</td>
      <td>
       Se un parametro o un operazione non è supportata dall&#039;oggetto sottostante.
      </td>
     </tr>

     <tr id="constant.dom-validation-err">
      <td>
       <strong><code><a href="dom.constants.php#constant.dom-validation-err">DOM_VALIDATION_ERR</a></code></strong>
       (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
      </td>
      <td>16</td>
      <td>
       Se una chiamata ad un metodo come insertBefore o removeChild renderebbe il nodo
       non valido rispetto alla &quot;validità parziale&quot;, questa eccezione potrebbe essere sollevata e 
       l&#039;operazione non verrebbe fatta.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>
<?php manual_footer($setup); ?>