<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.xmlwriter.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'xmlwriter.writedtd.php',
    1 => 'XMLWriter::writeDtd',
    2 => '&Eacute;crit une DTD',
  ),
  'up' => 
  array (
    0 => 'class.xmlwriter.php',
    1 => 'XMLWriter',
  ),
  'prev' => 
  array (
    0 => 'xmlwriter.writecomment.php',
    1 => 'XMLWriter::writeComment',
  ),
  'next' => 
  array (
    0 => 'xmlwriter.writedtdattlist.php',
    1 => 'XMLWriter::writeDtdAttlist',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/xmlwriter/xmlwriter/writedtd.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="xmlwriter.writedtd" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">XMLWriter::writeDtd</h1>
  <h1 class="refname">xmlwriter_write_dtd</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.1.2, PHP 7, PHP 8, PECL xmlwriter &gt;= 0.1.0)</p><p class="refpurpose"><span class="refname">XMLWriter::writeDtd</span> -- <span class="refname">xmlwriter_write_dtd</span> &mdash; <span class="dc-title">Écrit une DTD</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-xmlwriter.writedtd-description">
  <h3 class="title">Description</h3>
  <p class="para">Style orienté objet</p>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>XMLWriter::writeDtd</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$name</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$publicId</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$systemId</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$content</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span><br>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">Style procédural</p>
  <div class="methodsynopsis dc-description"><span class="methodname"><strong>xmlwriter_write_dtd</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="class.xmlwriter.php" class="type XMLWriter">XMLWriter</a></span> <code class="parameter">$writer</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$name</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$publicId</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$systemId</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$content</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span><br>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Écrit une DTD.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-xmlwriter.writedtd-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">
   <dl>
    
<dt><code class="parameter">writer</code></dt><dd><p class="para">
 Uniquement pour les appels procéduraux.
 L&#039;instance <span class="classname"><a href="class.xmlwriter.php" class="classname">XMLWriter</a></span> qui est modifiée.
 Cet objet provient d&#039;un appel à <span class="function"><a href="xmlwriter.openuri.php" class="function">xmlwriter_open_uri()</a></span>
 ou <span class="function"><a href="xmlwriter.openmemory.php" class="function">xmlwriter_open_memory()</a></span>.
</p></dd>
    
     <dt><code class="parameter">name</code></dt>
     <dd>
      <p class="para">
       Le nom de la DTD.
      </p>
     </dd>
    
    
     <dt><code class="parameter">publicId</code></dt>
     <dd>
      <p class="para">
       L&#039;identifiant publique externe.
      </p>
     </dd>
    
    
     <dt><code class="parameter">systemId</code></dt>
     <dd>
      <p class="para">
       L&#039;identifiant système externe.
      </p>
     </dd>
    
    
     <dt><code class="parameter">content</code></dt>
     <dd>
      <p class="para">
       Le contenu de la DTD.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-xmlwriter.writedtd-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="para">
   Cette fonction retourne <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> en cas de succès ou <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> si une erreur survient.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-xmlwriter.writedtd-changelog">
  <h3 class="title">Historique</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Version</th>
      <th>Description</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
 <td>8.0.0</td>
 <td>
  <code class="parameter">writer</code> attend une instance de <span class="classname"><a href="class.xmlwriter.php" class="classname">XMLWriter</a></span>
  désormais; auparavant, une <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> était attendu.
 </td>
</tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 seealso" id="refsect1-xmlwriter.writedtd-seealso">
  <h3 class="title">Voir aussi</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="xmlwriter.startdtd.php" class="methodname" rel="rdfs-seeAlso">XMLWriter::startDtd()</a> - Cr&eacute;e une DTD</span></li>
    <li><span class="methodname"><a href="xmlwriter.enddtd.php" class="methodname" rel="rdfs-seeAlso">XMLWriter::endDtd()</a> - Termine la DTD courante</span></li>
   </ul>
  </p>
 </div>


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