<?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 => 'zh',
  ),
  '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' => 'zh',
    '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 扩展。这意味着需要传递
<strong class="option configure">--with-libxml</strong>，或在 PHP 7.4 之前的版本中传递
<strong class="option configure">--enable-libxml</strong>，
尽管这将默默完成因为 libxml 是默认开启的。
</p>
  <p class="para">
   默认情况下，此扩展使用 <span class="productname">expat compat layer
   </span>。也可使用 <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
   是不会默认构建出库文件的，可使用以下构建规则进行构建：
   <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); ?>