<?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 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.xml-parser-create-ns.php',
    1 => 'xml_parser_create_ns',
    2 => '名前空間をサポートした XML パーサーを生成する',
  ),
  'up' => 
  array (
    0 => 'ref.xml.php',
    1 => 'XML パーサー 関数',
  ),
  'prev' => 
  array (
    0 => 'function.xml-parser-create.php',
    1 => 'xml_parser_create',
  ),
  'next' => 
  array (
    0 => 'function.xml-parser-free.php',
    1 => 'xml_parser_free',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/xml/functions/xml-parser-create-ns.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.xml-parser-create-ns" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">xml_parser_create_ns</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.5, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">xml_parser_create_ns</span> &mdash; <span class="dc-title">名前空間をサポートした XML パーサーを生成する</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.xml-parser-create-ns-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>xml_parser_create_ns</strong></span>(<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">$encoding</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$separator</code><span class="initializer"> = &quot;:&quot;</span></span>): <span class="type"><a href="class.xmlparser.php" class="type XMLParser">XMLParser</a></span></div>

  <p class="para rdfs-comment">
   <span class="function"><strong>xml_parser_create_ns()</strong></span> は XML 名前空間をサポートした
   新しい XML パーサーを作成し、他の XML 関数が使用する <span class="classname"><a href="class.xmlparser.php" class="classname">XMLParser</a></span> インスタンスを返します。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.xml-parser-create-ns-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">encoding</code></dt>
     <dd>
      <p class="para">
       入力のエンコーディングは
       自動判定されるので、<code class="parameter">encoding</code> パラメータは
       出力のエンコーディングのみを指定することになります。
       デフォルトの出力文字セットは UTF-8 です。
       サポートされるエンコーディングは
       <code class="literal">ISO-8859-1</code>、<code class="literal">UTF-8</code> および
       <code class="literal">US-ASCII</code> です。
      </p>
     </dd>
    
    
     <dt><code class="parameter">separator</code></dt>
     <dd>
      <p class="para">
       名前空間を含めたタグパラメータをハンドラ関数に渡す際には、
       名前空間名とタグ名を文字列 <code class="parameter">separator</code>
       でつなげたものが使用されます。
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.xml-parser-create-ns-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   新しい <span class="classname"><a href="class.xmlparser.php" class="classname">XMLParser</a></span> のインスタンスを返します。
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.xml-parser-create-ns-changelog">
  <h3 class="title">変更履歴</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>バージョン</th>
      <th>説明</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.0.0</td>
      <td>
      この関数は <span class="classname"><a href="class.xmlparser.php" class="classname">XMLParser</a></span> のインスタンスを返すようになりました。
      これより前のバージョンでは、リソースが返され、失敗した場合は <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> が返されていました。
      </td>
     </tr>

     <tr>
      <td>8.0.0</td>
      <td>
       <code class="parameter">encoding</code> は、 nullable になりました。
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 seealso" id="refsect1-function.xml-parser-create-ns-seealso">
  <h3 class="title">参考</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.xml-parser-create.php" class="function" rel="rdfs-seeAlso">xml_parser_create()</a> - XML パーサーを作成する</span></li>
   </ul>
  </p>
 </div>

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