1
0
mirror of https://github.com/php/doc-pl.git synced 2026-03-24 15:12:16 +01:00
Files
archived-doc-pl/reference/xml/functions/xml-parser-create.xml
Maciej Sobaczewski 9b8816fec9 Sync with EN
2026-03-02 20:32:03 +01:00

113 lines
3.1 KiB
XML
Executable File

<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: b47e4bea197126359815c5e43403c4b77a0aaaa7 Maintainer: cyb0org Status: ready -->
<!-- $Revision$ -->
<refentry xml:id="function.xml-parser-create" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>xml_parser_create</refname>
<refpurpose>Tworzy parser XML</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>XMLParser</type><methodname>xml_parser_create</methodname>
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>encoding</parameter><initializer>&null;</initializer></methodparam>
</methodsynopsis>
<para>
<function>xml_parser_create</function> tworzy nowy parser XML
i zwraca instancję <classname>XMLParser</classname> na potrzeby użycia jej przez
inne funkcje XML.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>encoding</parameter></term>
<listitem>
<para>
Kodowanie danych wejściowych
jest automatycznie wykrywane, więc parametr
<parameter>encoding</parameter> określa tylko kodowanie na wyjściu.
Jeśli podany został pusty ciąg znaków, wówczas parser próbuje
zidentyfikować kodowanie znaków dokumentu sprawdzając jego pierwsze 3
lub 4 bajty. Domyślnym kodowaniem znaków na wyjściu jest
UTF-8. Obsługiwanymi kodowaniami są <literal>ISO-8859-1</literal>,
<literal>UTF-8</literal> oraz <literal>US-ASCII</literal>.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Zwraca nową instancję <classname>XMLParser</classname>.
</para>
</refsect1>
<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>8.0.0</entry>
<entry>
Ta funkcja zwraca obecnie instancję <classname>XMLParser</classname>;
wcześniej zwracany był uchwyt zasobów <type>resource</type> &return.falseforfailure;.
</entry>
</row>
<row>
<entry>8.0.0</entry>
<entry>
<parameter>encoding</parameter> może obecnie przyjmować wartość &null;.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>xml_parser_create_ns</function></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->