<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.xml.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.xml-parser-set-option.php',
    1 => 'xml_parser_set_option',
    2 => 'Valorizza le opzioni di un parser XML',
  ),
  'up' => 
  array (
    0 => 'ref.xml.php',
    1 => 'XML Parser Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.xml-parser-get-option.php',
    1 => 'xml_parser_get_option',
  ),
  'next' => 
  array (
    0 => 'function.xml-set-character-data-handler.php',
    1 => 'xml_set_character_data_handler',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'it',
    'path' => 'reference/xml/functions/xml-parser-set-option.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.xml-parser-set-option" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">xml_parser_set_option</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">xml_parser_set_option</span> &mdash; <span class="dc-title">Valorizza le opzioni di un parser XML</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.xml-parser-set-option-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>xml_parser_set_option</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$parser</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$option</code></span>, <span class="methodparam"><span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span> <code class="parameter">$value</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Valorizza un opzione in un parser XML.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.xml-parser-set-option-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">parser</code></dt>
     <dd>
      <p class="para">
       Un riferimento al parser XML del quale impostare un&#039;opzione.
      </p>
     </dd>
    
    
     <dt><code class="parameter">option</code></dt>
     <dd>
      <p class="para">
       Quale opzione impostare.  Vedere sotto.
      </p>
      <p class="para">
       Sono disponibili le seguenti opzioni:
       <table class="doctable table">
        <caption><strong>Opazioni del parser XML</strong></caption>
        
         <thead>
          <tr>
           <th>Costante dell&#039;opzione</th>
           <th>Tipo dati</th>
           <th>Descrizione</th>
          </tr>

         </thead>

         <tbody class="tbody">
          <tr>
           <td><strong><code><a href="xml.constants.php#constant.xml-option-case-folding">XML_OPTION_CASE_FOLDING</a></code></strong></td>
           <td>integer</td>
           <td>
            Controlla se <a href="xml.case-folding.php" class="link">case-folding</a> è abilitato per questo
            parser XML.  Abilitato per impostazione predefinita.
           </td>
          </tr>

          <tr>
           <td><strong><code><a href="xml.constants.php#constant.xml-option-skip-tagstart">XML_OPTION_SKIP_TAGSTART</a></code></strong></td>
           <td>integer</td> 
           <td>
            Specifica quanti catatteri devono essere ignorati all&#039;inizio
            di un nome di tag.
           </td>
          </tr>

          <tr>
           <td><strong><code><a href="xml.constants.php#constant.xml-option-skip-white">XML_OPTION_SKIP_WHITE</a></code></strong></td>
           <td>integer</td> 
           <td>
            Indica se si devono saltare i valori che consistono in caratteri di spazio.
           </td>
          </tr>

          <tr>
           <td><strong><code><a href="xml.constants.php#constant.xml-option-target-encoding">XML_OPTION_TARGET_ENCODING</a></code></strong></td>
           <td>string</td> 
           <td>
            Imposta quale <a href="xml.encoding.php" class="link">codifica di destinazione</a>
            usare in questo parser XML.Per impostazione predefinita, è impostata la stessa codifica
            del sorgente utilizzata da <span class="function"><a href="function.xml-parser-create.php" class="function">xml_parser_create()</a></span>.
            Le codifiche di destinazione supportate sono <code class="literal">ISO-8859-1</code>,
            <code class="literal">US-ASCII</code> e <code class="literal">UTF-8</code>.
           </td>
          </tr>

         </tbody>
        
       </table>

      </p>
     </dd>
    
    
     <dt><code class="parameter">value</code></dt>
     <dd>
      <p class="para">
       Il nuovo valore dell&#039;opzione.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.xml-parser-set-option-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="para">
   Questa funzione restituisce <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> se <code class="parameter">parser</code> non
   si riferisce ad un parser valido, o se l&#039;opzione non può essere impostata. Altrimenti l&#039;
   opzione viene impostata e la funzione restituisce <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>.
  </p>
 </div>


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