Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 7161

php-manual-en-7.2.11-1.mga7.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Create an XML parser with namespace support</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.xml-parse.html">xml_parse</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.xml-parser-create.html">xml_parser_create</a></div>
 <div class="up"><a href="ref.xml.html">XML Parser Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><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)</p><p class="refpurpose"><span class="refname">xml_parser_create_ns</span> &mdash; <span class="dc-title">Create an XML parser with namespace support</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.xml-parser-create-ns-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">resource</span> <span class="methodname"><strong>xml_parser_create_ns</strong></span>
    ([ <span class="methodparam"><span class="type">string</span> <code class="parameter">$encoding</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$separator</code><span class="initializer"> = &quot;:&quot;</span></span>
  ]] )</div>

  <p class="para rdfs-comment">
   <span class="function"><strong>xml_parser_create_ns()</strong></span> creates a new XML parser
   with XML namespace support and returns a resource handle referencing 
   it to be used by the other XML functions.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.xml-parser-create-ns-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">encoding</code></dt>

     <dd>

      <p class="para">
       The input encoding is automatically detected, so that the
       <code class="parameter">encoding</code> parameter specifies only the output
       encoding. In PHP 5.0.0 and 5.0.1, the default output charset is
       ISO-8859-1, while in PHP 5.0.2 and upper is UTF-8. The supported
       encodings are <em>ISO-8859-1</em>, <em>UTF-8</em> and
       <em>US-ASCII</em>.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">separator</code></dt>

     <dd>

      <p class="para">
       With a namespace aware parser tag parameters passed to the various
       handler functions will consist of namespace and tag name separated by
       the string specified in <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">Return Values</h3>
  <p class="para">
   Returns a resource handle for the new XML parser.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.xml-parser-create-ns-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.xml-parser-create.html" class="function" rel="rdfs-seeAlso">xml_parser_create()</a> - Create an XML parser</span></li>
    <li class="member"><span class="function"><a href="function.xml-parser-free.html" class="function" rel="rdfs-seeAlso">xml_parser_free()</a> - Free an XML parser</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.xml-parse.html">xml_parse</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.xml-parser-create.html">xml_parser_create</a></div>
 <div class="up"><a href="ref.xml.html">XML Parser Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>