<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/xml.setup.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'xml.requirements.php',
    1 => '要件',
    2 => '要件',
  ),
  'up' => 
  array (
    0 => 'xml.setup.php',
    1 => 'インストール/設定',
  ),
  'prev' => 
  array (
    0 => 'xml.setup.php',
    1 => 'インストール/設定',
  ),
  'next' => 
  array (
    0 => 'xml.installation.php',
    1 => 'インストール手順',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/xml/setup.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="xml.requirements" class="section">
  <h2 class="title">要件</h2>
  <p class="para">この拡張モジュールを使うには
<a href="book.libxml.php" class="link">libxml</a> 拡張モジュールが必要です。つまり、
PHP 7.4 以降では <strong class="option configure">--with-libxml</strong>、それより前のバージョンでは <strong class="option configure">--enable-libxml</strong> も指定しなければならないということです。
しかし、libxml はデフォルトで有効になっているのでこのオプションは暗黙のうちに指定されています。</p>
  <p class="para">
   この拡張モジュールは、<span class="productname">expat</span> を使用します。
   これは、<a href="https://libexpat.github.io/" class="link external">&raquo;&nbsp;https://libexpat.github.io/</a>にあります。
   <span class="productname">expat</span> に付属のMakefileは、デフォルトでライブラリを構築しません。
   これを行うmakeルールを次のように指定できます。
   <div class="example-contents">
<div class="annotation-interactive makefilecode"><pre class="makefilecode">libexpat.a: $(OBJS)
    ar -rc $@ $(OBJS)
    ranlib $@</pre>
</div>
   </div>

   expat のソース RPM パッケージが
   <a href="https://sourceforge.net/projects/expat/" class="link external">&raquo;&nbsp;https://sourceforge.net/projects/expat/</a> にあります。
  </p>
 </div><?php manual_footer($setup); ?>