Source of: /manual/en/function.xml-parser-create-ns.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = 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 => 'en',
),
'this' =>
array (
0 => 'function.xml-parser-create-ns.php',
1 => 'xml_parser_create_ns',
),
'up' =>
array (
0 => 'ref.xml.php',
1 => 'XML Parser Functions',
),
'prev' =>
array (
0 => 'function.xml-parse.php',
1 => 'xml_parse',
),
'next' =>
array (
0 => 'function.xml-parser-create.php',
1 => 'xml_parser_create',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<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 >= 4.0.5, PHP 5)</p><p class="refpurpose"><span class="refname">xml_parser_create_ns</span> — <span class="dc-title">Create an XML parser with namespace support</span></p>
</div>
<a name="function.xml-parser-create-ns.description"></a><div class="refsect1 description">
<h3 class="title">Description</h3>
<div class="methodsynopsis dc-description">
<span class="type">resource</span> <span class="methodname"><b>xml_parser_create_ns</b></span>
([ <span class="methodparam"><span class="type">string</span> <tt class="parameter">$encoding</tt></span>
[, <span class="methodparam"><span class="type">string</span> <tt class="parameter">$separator</tt></span>
]] )</div>
<p class="para rdfs-comment">
<b>xml_parser_create_ns()</b> 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>
<a name="function.xml-parser-create-ns.parameters"></a><div class="refsect1 parameters">
<h3 class="title">Parameters</h3>
<p class="para">
</p><dl>
<dt class="varlistentry">
<span class="term"><i><tt class="parameter">encoding</tt></i>
</span>
</dt><dd class="listitem">
<p class="para">
The optional <i><tt class="parameter">encoding</tt></i>
specifies the character
encoding for the input/output in PHP 4. Starting from PHP 5, the input
encoding is automatically detected, so that the
<i><tt class="parameter">encoding</tt></i>
parameter specifies only the output
encoding. In PHP 4, the default output encoding is the same as the
input charset. 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 <i>ISO-8859-1</i>, <i>UTF-8</i> and
<i>US-ASCII</i>.
</p>
</dd>
<dt class="varlistentry">
<span class="term"><i><tt class="parameter">separator</tt></i>
</span>
</dt><dd class="listitem">
<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 <i><tt class="parameter">seperator</tt></i>
or
<i>':'</i> by default.
</p>
</dd>
</dl>
<p>
</p>
</div>
<a name="function.xml-parser-create-ns.returnvalues"></a><div class="refsect1 returnvalues">
<h3 class="title">Return Values</h3>
<p class="para">
Returns a resource handle for the new XML parser.
</p>
</div>
<a name="function.xml-parser-create-ns.seealso"></a><div class="refsect1 seealso">
<h3 class="title">See Also</h3>
<p class="para">
</p><ul class="simplelist">
<li class="member"><a href="function.xml-parser-create.php" class="function" rel="rdfs-seeAlso">xml_parser_create()</a> - Create an XML parser</li>
<li class="member"><a href="function.xml-parser-free.php" class="function" rel="rdfs-seeAlso">xml_parser_free()</a> - Free an XML parser</li>
</ul><p>
</p>
</div>
</div><?php manual_footer(); ?>